Checks whether the given IClaimsIdentity is in the collection.
Пространство имен: Microsoft.IdentityModel.Claims
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

Использование

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

returnValue = instance.Contains(item)

Синтаксис

Visual Basic
Public Function Contains ( _
		item As IClaimsIdentity _
) As Boolean
C#
public bool Contains (
		IClaimsIdentity item
)
C++
public:
virtual bool Contains (
		IClaimsIdentity^ item
) sealed
J#
public final boolean Contains (
		IClaimsIdentity item
)
JScript
public final function Contains (
		item : IClaimsIdentity
) : boolean

Параметры

item

The IClaimsIdentity to look for.

Возвращаемое значение

Returns Boolean. true if the IClaimsIdentity is in the collection; otherwise, false.

Безопасность потоков

Любые открытые статические члены (Shared в Visual Basic) этого типа являются поточно-ориентированными.Любые члены экземпляров не являются гарантированно поточно-ориентированными.

Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

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

См. также