SocketPermissionAttribute.Transport 属性

定义

获取或设置 TransportType 由此 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

属性值

一个字符串,包含 TransportType 与此 SocketPermissionAttribute关联的字符串。

例外

Transport null不是尝试设置值时。 若要指定多个传输类型,请使用其他属性声明语句。

注解

此属性All的可能字符串值为 、、 ConnectionlessConnectionOrientedTcp和 。Udp

适用于