다음을 통해 공유


SoapReceivers.Add Method (EndpointReference, Type)

Adds the specified Type 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 Type
SoapReceivers.Add(endpoint, receiver)

Syntax

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

Parameters

  • receiver
    A Type that represents the receiver to add to the collection.

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 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