HostProtectionAttribute.SelfAffectingProcessMgmt プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HostProtectionAttribute.SelfAffectingProcessMgmt プロパティの意味・解説 

HostProtectionAttribute.SelfAffectingProcessMgmt プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

自己作用型のプロセス管理公開されているかどうかを示す値を取得または設定します

名前空間: System.Security.Permissions
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Property SelfAffectingProcessMgmt As
 Boolean
Dim instance As HostProtectionAttribute
Dim value As Boolean

value = instance.SelfAffectingProcessMgmt

instance.SelfAffectingProcessMgmt = value
public bool SelfAffectingProcessMgmt { get;
 set; }
public:
property bool SelfAffectingProcessMgmt {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_SelfAffectingProcessMgmt ()

/** @property */
public void set_SelfAffectingProcessMgmt (boolean
 value)
public function get SelfAffectingProcessMgmt
 () : boolean

public function set SelfAffectingProcessMgmt
 (value : boolean)

プロパティ
自己作用型のプロセス管理公開されている場合trueそれ以外場合false既定値false です。

解説解説
使用例使用例

SelfAffectingProcessMgmt プロパティを持つ HostProtectionAttribute 属性使用するコード例次に示します。このコード例は、HostProtectionAttribute クラストピック取り上げているコード例一部分です。

' Use the enumeration flags to indicate that this method exposes 
' shared state and self-affecting process management.
' Either of the following attribute statements can be used to set the
 
' resource flags.
<HostProtectionAttribute(SharedState := True, _
    SelfAffectingProcessMgmt := True), _
    HostProtectionAttribute( _
    Resources := HostProtectionResource.SharedState Or _
    HostProtectionResource.SelfAffectingProcessMgmt)> _
Private Shared Sub [Exit](ByVal
 Message As String, ByVal
 Code As Integer)

    ' Exit the sample when an exception is thrown.
    Console.WriteLine((ControlChars.Lf & "FAILED: "
 & Message & " " & _
        Code.ToString()))
    Environment.ExitCode = Code
    Environment.Exit(Code)
End Sub 'Exit
// Use the enumeration flags to indicate that this method exposes 
// shared state and self-affecting process management.
// Either of the following attribute statements can be used to set the
// resource flags.
[HostProtectionAttribute(SharedState = true, 
    SelfAffectingProcessMgmt = true)]
[HostProtectionAttribute(Resources = HostProtectionResource.SharedState |
     HostProtectionResource.SelfAffectingProcessMgmt)]
private static void Exit(string
 Message, int Code)
{
    // Exit the sample when an exception is thrown.
    Console.WriteLine("\nFAILED: " + Message + " " + Code.ToString());
    Environment.ExitCode = Code;
    Environment.Exit(Code);
}
// Use the enumeration flags to indicate that this method exposes shared
 state and 
// self-affecting process management.
// Either of the following attribute statements can be used to set the
 
// resource flags.
// Exit the sample when an exception is thrown.

[HostProtection(SharedState=true,SelfAffectingProcessMgmt=true)]
[HostProtection(Resources=HostProtectionResource::SharedState|
HostProtectionResource::SelfAffectingProcessMgmt)]
static void Exit( String^ Message, int
 Code )
{
   Console::WriteLine( "\nFAILED: {0} {1}", Message, Code );
   Environment::ExitCode = Code;
   Environment::Exit( Code );
}


プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HostProtectionAttribute クラス
HostProtectionAttribute メンバ
System.Security.Permissions 名前空間
SelfAffectingProcessMgmt



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

HostProtectionAttribute.SelfAffectingProcessMgmt プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HostProtectionAttribute.SelfAffectingProcessMgmt プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS