DefaultPortElement::Port Property

.NET Framework (current version)
 

Gets or sets the default communications port number.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
[ConfigurationPropertyAttribute("port", DefaultValue = 0, Options = ConfigurationPropertyOptions::IsRequired)]
[IntegerValidatorAttribute(MinValue = 0, MaxValue = 65535)]
property int Port {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The communications port.

.NET Framework
Available since 3.0
Return to top
Show: