Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Determines whether the set contains at least one of the given text view roles.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function ContainsAny ( _
textViewRoles As IEnumerable(Of String) _
) As Boolean
bool ContainsAny(
IEnumerable<string> textViewRoles
)
bool ContainsAny(
IEnumerable<String^>^ textViewRoles
)
abstract ContainsAny :
textViewRoles:IEnumerable<string> -> bool
function ContainsAny(
textViewRoles : IEnumerable<String>
) : boolean
Parameters
textViewRoles
Type: System.Collections.Generic.IEnumerable<String>The list of roles to check for inclusion.
Return Value
Type: System.Boolean
true if the set contains at least one of the given text view roles, otherwise false.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | if textViewRoles is nulla null reference (Nothing in Visual Basic). |
Remarks
Returns false if textViewRoles contains no roles. Null values in textViewRoles are ignored.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.