Share via


SoapMethodAttribute.UniqueMethodName Property

Gets or sets the name of the Web Services Decription Languague (WSDL) operation for the Web service method.

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

Usage

'Usage
Dim soapMethodAttribute1 As SoapMethodAttribute

Dim returnValue As String
returnValue = soapMethodAttribute1.UniqueMethodName

Dim sampleValue As String
soapMethodAttribute1.UniqueMethodName = sampleValue

Syntax

'Declaration
Public Property UniqueMethodName() As String
public string UniqueMethodName {get; set;}
public:
property String^ UniqueMethodName {
    String^ get();
    void set(String^ value);
}
public System.String get_UniqueMethodName();
public void set_UniqueMethodName(System.String);
public function get UniqueMethodName() : String;
public function set UniqueMethodName(String);

Property Value

The WSDL operation for the Web service method.

Exceptions

Exception type Condition
ArgumentNullException

UniqueMethodName is set to null.

Remarks

When a Web service has an overloaded Web service method, use the UniqueMethodName to specify a unique WSDL operation for each overload. By default, the name of the Web service method is the name of the WSDL operation, but WSDL requires that each operation name must be unique. Therefore, use the UniqueMethodName property to specify the unique WSDL operation name for each overload.

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

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