Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Closes the document.
Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Function CloseDocument ( _
    options As __FRAMECLOSE, _
    docCookie As UInteger _
) As CloseResult
public CloseResult CloseDocument(
    __FRAMECLOSE options,
    uint docCookie
)
public:
CloseResult CloseDocument(
    __FRAMECLOSE options, 
    unsigned int docCookie
)
member CloseDocument : 
        options:__FRAMECLOSE * 
        docCookie:uint32 -> CloseResult
public function CloseDocument(
    options : __FRAMECLOSE, 
    docCookie : uint
) : CloseResult
Parameters
- options 
 Type: Microsoft.VisualStudio.Shell.Interop.__FRAMECLOSE- The close options. 
- docCookie 
 Type: UInt32- The cookie for the document. 
Return Value
Type: Microsoft.VisualStudio.Shell.CloseResult
The close result.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.