IVsSmartOpenScope.OpenScope 方法
打开范围并返回到此的请求的接口。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)
语法
声明
Function OpenScope ( _
wszScope As String, _
dwOpenFlags As UInteger, _
ByRef riid As Guid, _
<OutAttribute> ByRef ppIUnk As Object _
) As Integer
int OpenScope(
string wszScope,
uint dwOpenFlags,
ref Guid riid,
out Object ppIUnk
)
参数
- wszScope
类型:System.String
[in] 包含文件名称的字符串。
- dwOpenFlags
类型:System.UInt32
[in] 个标记指示如何打开文件。构造使用从 CorOpenFlags 枚举的值。
- riid
类型:System.Guid%
[in] 设置为希望 GUID 的指针返回接口。
- ppIUnk
类型:System.Object%
[out] 所请求的接口的指针在范围内。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。