Share via


SoapReceivers.Add Method (EndpointReference, Object)

Adds the specified SoapReceiver to the collection and indexes it by the specified EndpointReference.

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

Usage

'Usage
Dim endpoint As EndpointReference
Dim receiver As Object
SoapReceivers.Add(endpoint, receiver)

Syntax

'Declaration
Overloads Public Shared Sub Add( _
    ByVal endpoint As EndpointReference, _
    ByVal receiver As Object _
)
public static void Add(
    EndpointReference endpoint, 
    object receiver
);
public:
static void Add(
    EndpointReference^ endpoint,
    Object^ receiver
);
public static void Add(
    EndpointReference endpoint, 
    System.Object receiver
);
public static function Add(
     endpoint : EndpointReference, 
     receiver : Object
) : Void;

Parameters

Remarks

The Add method fails on a Windows 2000 or Windows XP operating system if the caller does not have Administrator permissions and the enabled attribute of the <exclusiveAddressUse> Element is set to true (the default). If the caller does not have sufficient permissions, set the enabled attribute of the <exclusiveAddressUse> Element element to false to allow the method to succeed. Note that this does not apply to Windows Server 2003.

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

SoapReceivers Class
SoapReceivers Members
Microsoft.Web.Services3.Messaging Namespace