Share via


SecurityCollection.Contains Method (Uri)

Checks if the SecurityCollection contains a Security with a specified actor.

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim actor As Uri
Dim returnValue As Boolean
Dim securityCollection1 As SecurityCollection
returnValue = securityCollection1.Contains(actor)

Syntax

'Declaration
Overloads Public Function Contains( _
    ByVal actor As Uri _
) As Boolean
public bool Contains(
    Uri actor
);
public: Boolean Contains(
    Uri^ actor
);
public boolean Contains(
    Uri actor
);
public function Contains(
     actor : Uri
) : Boolean;

Parameters

  • actor
    A URI containing the specific receiver that the SOAP message is targeting.

Return Value

true if the SecurityCollection contains a Security object corresponding to the actor; otherwise, false.

Exceptions

Exception type Condition
System.ArgumentNullException

actor is null.

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 XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SecurityCollection Class
Microsoft.Web.Services2.Security Namespace

Other Resources

SecurityCollection Members