PeerTransportElement.Port Propriedade
Definição
Obtém ou define um elemento de configuração que especifica a porta para a associação de transporte de par.Gets or sets a configuration element that specifies the port for the peer transport binding.
public:
property int Port { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("port", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.Configuration.IntegerValidator(MaxValue=65535, MinValue=0)]
public int Port { get; set; }
[<System.Configuration.ConfigurationProperty("port", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
[<System.Configuration.IntegerValidator(MaxValue=65535, MinValue=0)>]
member this.Port : int with get, set
Public Property Port As Integer
Valor da propriedade
Um Int32 valor que especifica a porta para a associação de transporte de mesmo nível.A Int32 value that specifies the port for the peer transport binding.
- Atributos
Comentários
Se o valor da porta for inválido, ArgumentException será gerado.If the port value is invalid, ArgumentException is raised. O valor padrão dessa propriedade é 0, o que indica que a porta do ouvinte é selecionada aleatoriamente de todas as portas não reservadas.The default value for this property is 0, which indicates that the listener port is randomly selected from all unreserved ports.