DefaultPortElement.Port Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the default communications port number.
public:
property int Port { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("port", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)]
[System.Configuration.IntegerValidator(MaxValue=65535, MinValue=0)]
public int Port { get; set; }
[System.Configuration.IntegerValidator(MaxValue=65535, MinValue=0)]
[System.Configuration.ConfigurationProperty("port", DefaultValue=0, Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)]
public int Port { get; set; }
[<System.Configuration.ConfigurationProperty("port", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)>]
[<System.Configuration.IntegerValidator(MaxValue=65535, MinValue=0)>]
member this.Port : int with get, set
[<System.Configuration.IntegerValidator(MaxValue=65535, MinValue=0)>]
[<System.Configuration.ConfigurationProperty("port", DefaultValue=0, Options=System.Configuration.ConfigurationPropertyOptions.IsRequired)>]
member this.Port : int with get, set
Public Property Port As Integer
Property Value
The communications port.
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.