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

属性值

String

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

例外

当尝试设置该值时,Transport 不为 null。 若要指定多个传输类型,请使用一个额外的特性声明语句。

注解

此属性的可能字符串值为 、、、和UdpTcpConnectionOrientedConnectionlessAll

适用于