Determines whether the view supports the specified role.
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.11.0(在 Microsoft.VisualStudio.TextManager.Interop.11.0.dll 中)
语法
声明
Function DoesViewSupportRole ( _
pszRole As String, _
<OutAttribute> ByRef pbContainsRole As Integer _
) As Integer
int DoesViewSupportRole(
string pszRole,
out int pbContainsRole
)
int DoesViewSupportRole(
[InAttribute] String^ pszRole,
[OutAttribute] int% pbContainsRole
)
abstract DoesViewSupportRole :
pszRole:string *
pbContainsRole:int byref -> int
function DoesViewSupportRole(
pszRole : String,
pbContainsRole : int
) : int
参数
pszRole
类型:String[in] The specified role.
pbContainsRole
类型:Int32%[out] Value is true if the specified role is supported; otherwise, false.
返回值
类型:Int32
Returns S_OK if the method is successful; otherwise, returns an error code.
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。