Partager via


AddressList.Contains Method

Determines whether the specified Address is contained in the collection.

Namespace: Microsoft.Web.Services3.Addressing
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim address As Address
Dim returnValue As Boolean
Dim addressList1 As AddressList
returnValue = addressList1.Contains(address)

Syntax

'Declaration
Public Function Contains( _
    ByVal address As Address _
) As Boolean
public bool Contains(
    Address address
);
public:
bool Contains(
    Address^ address
);
public boolean Contains(
    Address address
);
public function Contains(
     address : Address
) : Boolean;

Parameters

  • address
    The Address to locate in the collection.

Return Value

true if address is contained in the collection; otherwise, false .

Exceptions

Exception type Condition
ArgumentNullException

address 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 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

AddressList Class
AddressList Members
Microsoft.Web.Services3.Addressing Namespace