ファイル ダイアログを使用してファイルを保存するためのアクセス許可が宣言されているかどうかを示す値を取得または設定します。
Public Property Save As Boolean
[C#]
public bool Save {get; set;}
[C++]
public: __property bool get_Save();public: __property void set_Save(bool);
[JScript]
public function get Save() : Boolean;public function set Save(Boolean);
プロパティ値
ファイル ダイアログを使用してファイルを保存するためのアクセス許可が宣言されている場合は true 。それ以外の場合は false 。
使用例
' Set the Save property for a Deny action.
<FileDialogPermissionAttribute(SecurityAction.Deny, Save:=True)> _
Public Shared Sub DenyMethod()
Console.WriteLine("Executing DenyMethod.")
Console.WriteLine("Denying the Save permission.")
DenyTest()
End Sub 'DenyMethod
[C#]
// Set the Save property for a Deny action.
[FileDialogPermissionAttribute(SecurityAction.Deny, Save = true)]
public static void DenyMethod()
{
Console.WriteLine("Executing DenyMethod.");
Console.WriteLine("Denying the Save permission.");
DenyTest();
}
[C++]
// Set the Save property for a Deny action.
[FileDialogPermissionAttribute(SecurityAction::Deny, Save = true)]
void DenyMethod() {
Console::WriteLine(S"Executing DenyMethod.");
Console::WriteLine(S"Denying the Save permission.");
DenyTest();
}
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
FileDialogPermissionAttribute クラス | FileDialogPermissionAttribute メンバ | System.Security.Permissions 名前空間