Condividi tramite


SoapTcpTransportOptions.DefaultPort Property

Gets or sets the default port for a connection.

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

Usage

'Usage
Dim soapTcpTransportOptions1 As SoapTcpTransportOptions

Dim returnValue As Integer
returnValue = soapTcpTransportOptions1.DefaultPort

Dim sampleValue As Integer
soapTcpTransportOptions1.DefaultPort = sampleValue

Syntax

'Declaration
Public Property DefaultPort() As Integer
public int DefaultPort {get; set;}
public:
property int DefaultPort {
    int get();
    void set(int value);
}
public int get_DefaultPort();
public void set_DefaultPort(int);
public function get DefaultPort() : int;
public function set DefaultPort(int);

Property Value

An integer representing the default port for a connection. The default value is 8081.

Exceptions

Exception type Condition
ArgumentOutOfRangeException

DefaultPort is set to less than 0.

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

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