共用方式為


IVsRunningDocumentTable.ModifyDocumentFlags(UInt32, UInt32, Int32) Method

Definition

Modifies the RDT document flags for a registered document.

public:
 int ModifyDocumentFlags(System::UInt32 docCookie, System::UInt32 grfFlags, int fSet);
public:
 int ModifyDocumentFlags(unsigned int docCookie, unsigned int grfFlags, int fSet);
int ModifyDocumentFlags(unsigned int docCookie, unsigned int grfFlags, int fSet);
public int ModifyDocumentFlags (uint docCookie, uint grfFlags, int fSet);
abstract member ModifyDocumentFlags : uint32 * uint32 * int -> int
Public Function ModifyDocumentFlags (docCookie As UInteger, grfFlags As UInteger, fSet As Integer) As Integer

Parameters

docCookie
UInt32

[in] Unique value representing the document.

grfFlags
UInt32

[in] Valid document flags. See Remarks for valid modifications. See _VSRDTFLAGS

fSet
Int32

[in]. Flag indicating that the document flag has been set.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method must be accessed on the main thread.

Applies to