Freigeben über


ITextViewRoleSet.Contains-Methode

Bestimmt, ob der angegebene Text der Rolle ein Mitglied des Satzes ist.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Function Contains ( _
    textViewRole As String _
) As Boolean
bool Contains(
    string textViewRole
)
bool Contains(
    String^ textViewRole
)
abstract Contains : 
        textViewRole:string -> bool
function Contains(
    textViewRole : String
) : boolean

Parameter

  • textViewRole
    Typ: String

    Die Rolle.

Rückgabewert

Typ: Boolean
true , wenn der Text die angegebene Rolle Mitglied der Gruppe befindet, andernfalls false.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

textViewRole ist nullein Nullverweis (Nothing in Visual Basic).

.NET Framework-Sicherheit

Siehe auch

Referenz

ITextViewRoleSet Schnittstelle

Microsoft.VisualStudio.Text.Editor-Namespace