Partager via


ReferenceList.Contains Method

Checks if a specific reference exists in a ReferenceList.

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

Usage

'Usage
Dim reference As String
Dim returnValue As Boolean
Dim referenceList1 As ReferenceList
returnValue = referenceList1.Contains(reference)

Syntax

'Declaration
Public Function Contains( _
    ByVal reference As String _
) As Boolean
public bool Contains(
    string reference
);
public:
bool Contains(
    String^ reference
);
public boolean Contains(
    System.String reference
);
public function Contains(
     reference : String
) : Boolean;

Parameters

  • reference
    The Reference object for which the ReferenceList is checked.

Return Value

true if ReferenceList contains the reference; otherwise, false.

Exceptions

Exception type Condition
ArgumentNullException

reference 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

ReferenceList Class
ReferenceList Members
Microsoft.Web.Services3.Security Namespace