FileIOPermissionAttribute::Write Property

 

Gets or sets write access for the file or directory specified by the string value.

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public:
property String^ Write {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The absolute path of the file or directory for write access.

This property sets access for a single file or directory. Use additional attributes to specify additional files and directories.

The following example sets the Write property to grant Write access to files in the specified directory.

// Set the Write property.
[FileIOPermissionAttribute(SecurityAction::PermitOnly,
Write="C:\\Documents and Settings\\All Users\\Application Data\\Microsoft")]

.NET Framework
Available since 1.1
Return to top
Show: