SearchResultAttributeCollection.Contains(String) Methode

Definition

Die Contains(String)-Methode gibt an, ob die Auflistung den angegebenen attributeName enthält.The Contains(String) method determines whether the collection contains the specified attributeName.

public:
 bool Contains(System::String ^ attributeName);
public bool Contains (string attributeName);
member this.Contains : string -> bool
Public Function Contains (attributeName As String) As Boolean

Parameter

attributeName
String

Der Name des zu suchenden Attributs.The name of the attribute to locate.

Gibt zurück

true, wenn die Auflistung attributeName enthält; andernfalls false.true if the collection contains attributeName or false if it does not.

Ausnahmen

attributeName ist ein NULL-Verweis (Nothing in Visual Basic).attributeName is a null reference (Nothing in Visual Basic).

Gilt für: