SearchResultAttributeCollection.Contains Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

The Contains method determines whether the collection contains the specified attributeName.

Namespace:   System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)

public bool Contains(
	string attributeName
)

Parameters

attributeName
Type: System.String

The name of the attribute to locate.

Return Value

Type: System.Boolean

true if the collection contains attributeName or false if it does not.

Exception Condition
ArgumentNullException

attributeName is a null reference (Nothing in Visual Basic).

.NET Framework
Available since 2.0
Return to top
Show: