DocData::IVsDocumentLockHolder::CloseDocumentHolder Method (UInt32)

 

Close the document based on a user request.

Namespace:   Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

private:
virtual int CloseDocumentHolder(
	unsigned int saveOptions
) sealed = IVsDocumentLockHolder::CloseDocumentHolder

Parameters

saveOptions
Type: System::UInt32

Values from the __FRAMECLOSE enumeration.

Return Value

Type: System::Int32

S_OK .

After successfully closing the window frame, the owner of the frame should dispose this DocData and set it to null, thus releasing the document lock holder as well as the lock. If DocData is not null, dispose it in your implementation of this method.

Return to top
Show: