Determines the index of a specific IClaimsIdentity object.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As ClaimsIdentityCollection
Dim item As IClaimsIdentity
Dim returnValue As Integer

returnValue = instance.IndexOf(item)

Syntax

Visual Basic
Public Function IndexOf ( _
		item As IClaimsIdentity _
) As Integer
C#
public int IndexOf (
		IClaimsIdentity item
)
C++
public:
virtual int IndexOf (
		IClaimsIdentity^ item
) sealed
J#
public final int IndexOf (
		IClaimsIdentity item
)
JScript
public final function IndexOf (
		item : IClaimsIdentity
) : int

Parameters

item

The IClaimsIdentity to locate.

Return Value

Returns Int32. This is the index of item if found in the list; otherwise, -1.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also