共用方式為


FileIOPermissionAttribute.Append 屬性

定義

取得或設定字串值所指定檔案或目錄的附加存取權。

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

屬性值

附加存取權的檔案或目錄絕對路徑。

範例

下列程式代碼範例會設定 Append 屬性,以授 Append 與指定目錄中檔案的存取權。

// Set the Append property.
[FileIOPermissionAttribute(SecurityAction::PermitOnly,
Append="C:\\Documents and Settings\\All Users\\Application Data")]
// Set the Append property.
[FileIOPermissionAttribute(SecurityAction.PermitOnly,
     Append = "C:\\Documents and Settings\\All Users\\Application Data")]
' Set the Read, PathDiscovery, Append, Write, and All properties.
<FileIOPermissionAttribute(SecurityAction.PermitOnly, Read:="C:\"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
PathDiscovery:="C:\Documents and Settings\All Users"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
Append:="C:\Documents and Settings\All Users\Application Data"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
    Write:="C:\Documents and Settings\All Users\Application Data\Microsoft"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
    All:="C:\Documents and Settings\All Users\Application Data\Microsoft\Network")> _
Public Shared Sub PermitOnlyMethod()

備註

此屬性會設定單一檔案或目錄的存取權。 使用其他屬性來指定其他檔案和目錄。

適用於