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允許的網路存取方法的字串。 有效的數值是「接受」和「連結」。

例外狀況

當你嘗試設定價值時,財產 Access 就不是 null 。 若要指定多個 Access 方法,請使用額外的屬性宣告語句。

備註

此性質為寫入一次。 此性質的有效值對應 NetworkAccess 列舉值。

適用於