SocketPermissionAttribute.Transport Propriedade

Definição

Obtém ou define o TransportType especificado por esse SocketPermissionAttribute.Gets or sets the TransportType that is specified by this SocketPermissionAttribute.

public:
 property System::String ^ Transport { System::String ^ get(); void set(System::String ^ value); };
public string Transport { get; set; }
member this.Transport : string with get, set
Public Property Transport As String

Valor da propriedade

String

Uma cadeia de caracteres que contém o TransportType que está associado a isso SocketPermissionAttribute .A string that contains the TransportType that is associated with this SocketPermissionAttribute.

Exceções

Transport não é null quando você tentar definir o valor.Transport is not null when you attempt to set the value. Para especificar mais de um tipo de transporte, use uma instrução de declaração de atributo adicional.To specify more than one transport type, use an additional attribute declaration statement.

Comentários

Os possíveis valores de cadeia de caracteres dessa propriedade são,,, All Connectionless ConnectionOriented Tcp e Udp .Possible string values of this property are All, Connectionless, ConnectionOriented, Tcp, and Udp.

Aplica-se a