SocketPermissionAttribute.Access 属性

定义

获取或设置此 SocketPermissionAttribute允许的网络访问方法。

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

属性值

包含此实例允许的网络访问方法的 SocketPermissionAttribute字符串。 有效值为“Accept”和“Connect”。

例外

尝试 Access 设置值时,该属性不是 null 。 若要指定多个 Access 方法,请使用其他属性声明语句。

注解

此属性是写入一次。 此属性的有效值对应于 NetworkAccess 枚举值。

适用于