ユーザーによるセッションの終了要求をキャンセルするかどうかを示す値を取得または設定します。
名前空間: Microsoft.Win32
アセンブリ: System (system.dll 内)
構文
'宣言
Public Property Cancel As Boolean
'使用
Dim instance As SessionEndingEventArgs
Dim value As Boolean
value = instance.Cancel
instance.Cancel = value
public bool Cancel { get; set; }
public:
property bool Cancel {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_Cancel ()
/** @property */
public void set_Cancel (boolean value)
public function get Cancel () : boolean
public function set Cancel (value : boolean)
適用できません。
プロパティ値
ユーザーによるセッションの終了要求をキャンセルする場合は true。それ以外の場合は false。
解説
このプロパティを false に設定すると、セッションを継続して実行するように要求できます。セッションの継続を要求しても、セッションが絶対に終了しないというわけではありません。
プラットフォーム
Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition
Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。
バージョン情報
.NET Framework
サポート対象 : 3.0,2.0,1.1,1.0
参照
関連項目
SessionEndingEventArgs クラス
SessionEndingEventArgs メンバ
Microsoft.Win32 名前空間