Condividi tramite


IVsTextView3.DoesViewSupportRole(String, Int32) Method

Definition

Determines whether the view supports the specified role.

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

Parameters

pszRole
String

[in] The specified role.

pbContainsRole
Int32

[out] Value is true if the specified role is supported; otherwise, false.

Returns

Returns S_OK if the method is successful; otherwise, returns an error code.

Applies to