IdentityReferenceCollection.Contains Method (IdentityReference)

 
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.

Indicates whether the IdentityReferenceCollection collection contains the specified IdentityReference object.

Namespace:   System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

public bool Contains(
	IdentityReference identity
)

Parameters

identity
Type: System.Security.Principal.IdentityReference

The IdentityReference object to check for.

Return Value

Type: System.Boolean

true if the collection contains the specified object.

Exception Condition
ArgumentNullException

identity is null.

.NET Framework
Available since 2.0
Return to top
Show: