Share via


SocketPermissionAttribute.Transport Proprietà

Definizione

Ottiene o imposta il TransportType specificato da questo 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

Valore della proprietà

Stringa in cui è contenuto il TransportType associato a questo SocketPermissionAttribute.

Eccezioni

La proprietà Transport non è null quando si tenta di impostare il valore. Per specificare più di un tipo di trasporto, utilizzare un'ulteriore istruzione di dichiarazione dell'attributo.

Commenti

I valori stringa possibili di questa proprietà sono All, , ConnectionlessConnectionOriented, Tcpe Udp.

Si applica a