IVsRunningDocumentTable::ModifyDocumentFlags Method (UInt32, UInt32, Int32)
Visual Studio 2015
Modifies the RDT document flags for a registered document.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- docCookie
-
Type:
System::UInt32
[in] Unique value representing the document.
- grfFlags
-
Type:
System::UInt32
[in] Valid document flags. See Remarks for valid modifications. See _VSRDTFLAGS
- fSet
-
Type:
System::Int32
[in]. Flag indicating that the document flag has been set.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsRunningDocumentTable::ModifyDocumentFlags( VSCOOKIE docCookie, VSRDTFLAGS grfFlags, BOOL fSet );
This method is used to modify the RDT document flags for a registered document. Currently the only valid flags to modify are:
Flags | Modification Allowed |
|---|---|
Set only (fSet must be true) | |
Set only | |
Set only | |
Set only |
The docCookie parameter is the same value that is returned from the FindAndLockDocument or RegisterAndLockDocument methods.
Show: