Partager via


ReferralCollection.Contains Method (Referral)

Checks if a specific Referral exists in a ReferralCollection.

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

Usage

'Usage
Dim referral As Referral
Dim returnValue As Boolean
Dim referralCollection1 As ReferralCollection
returnValue = referralCollection1.Contains(referral)

Syntax

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

Parameters

  • referral
    The Referral object for which the ReferralCollection is checked.

Return Value

true if ReferralCollection contains the referral; otherwise, false.

Exceptions

Exception type Condition
ArgumentNullException

referral 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

ReferralCollection Class
ReferralCollection Members
Microsoft.Web.Services3.Referral Namespace