Partager via


ReferralCollection.Add Method

Appends a Referral object to the end of a ReferralCollection.

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

Usage

'Usage
Dim referral As Referral
Dim referralCollection1 As ReferralCollection
referralCollection1.Add(referral)

Syntax

'Declaration
Public Sub Add( _
    ByVal referral As Referral _
)
public void Add(
    Referral referral
);
public:
void Add(
    Referral^ referral
);
public void Add(
    Referral referral
);
public function Add(
     referral : Referral
) : Void;

Parameters

Exceptions

Exception type Condition
ArgumentException

referral is a duplicate of an existing Referral object in the ReferralCollection.

Remarks

referral will be checked for validity before it can be added to the collection.

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