Freigeben über


IVsTextView3.DoesViewSupportRole Method

Determines whether the view supports the specified role.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.11.0 (in Microsoft.VisualStudio.TextManager.Interop.11.0.dll)

Syntax

'Declaration
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

Parameters

  • pbContainsRole
    Type: System.Int32%
    [out] Value is true if the specified role is supported; otherwise, false.

Return Value

Type: System.Int32
Returns S_OK if the method is successful; otherwise, returns an error code.

.NET Framework Security

See Also

Reference

IVsTextView3 Interface

Microsoft.VisualStudio.TextManager.Interop Namespace