IVsTextView3.DoesViewSupportRole(String, Int32) 方法

定义

确定视图是否支持指定的角色。

public:
 int DoesViewSupportRole(System::String ^ pszRole, [Runtime::InteropServices::Out] int % pbContainsRole);
int DoesViewSupportRole(std::wstring const & pszRole, [Runtime::InteropServices::Out] int & pbContainsRole);
public int DoesViewSupportRole (string pszRole, out int pbContainsRole);
abstract member DoesViewSupportRole : string * int -> int
Public Function DoesViewSupportRole (pszRole As String, ByRef pbContainsRole As Integer) As Integer

参数

pszRole
String

中指定的角色。

pbContainsRole
Int32

弄如果支持指定的角色,则值为 true;否则为 false。

返回

Int32

S_OK如果方法成功,则返回; 否则返回错误代码。

适用于