IVsRunningDocumentTable.ModifyDocumentFlags 方法
修改 RDT 文档注册的标志文档。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
Function ModifyDocumentFlags ( _
docCookie As UInteger, _
grfFlags As UInteger, _
fSet As Integer _
) As Integer
int ModifyDocumentFlags(
uint docCookie,
uint grfFlags,
int fSet
)
参数
- docCookie
类型:System.UInt32
[in] 表示文档的唯一值。
- grfFlags
类型:System.UInt32
[in] 活动文档标志。有关有效的修改参见备注。请参见_VSRDTFLAGS
- fSet
类型:System.Int32
[in]。标记指示文档标志设置为。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 vsshell.idl:
HRESULT IVsRunningDocumentTable::ModifyDocumentFlags(
VSCOOKIE docCookie,
VSRDTFLAGS grfFlags,
BOOL fSet
);
此方法用于修改 RDT 文档注册的标志文档。 当前修改的唯一有效的标志是:
Flags |
允许的更改 |
---|---|
只设置 (fSet 必须是 true) |
|
只设置 |
|
只设置 |
|
只设置 |
docCookie 参数是从 FindAndLockDocument 或 RegisterAndLockDocument 方法返回的值相同。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。