HostProtectionAttribute.SelfAffectingThreading プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As HostProtectionAttribute Dim value As Boolean value = instance.SelfAffectingThreading instance.SelfAffectingThreading = value
/** @property */ public boolean get_SelfAffectingThreading () /** @property */ public void set_SelfAffectingThreading (boolean value)
public function get SelfAffectingThreading () : boolean public function set SelfAffectingThreading (value : boolean)
自己作用型のスレッド処理が公開されている場合は true。それ以外の場合は false。既定値は false です。


SelfAffectingThreading プロパティを持つ HostProtectionAttribute 属性を使用するコード例を次に示します。このコード例は、HostProtectionAttribute クラスのトピックで取り上げているコード例の一部分です。
' Use the enumeration flags to indicate that this method exposes shared ' state, self-affecting process management, and self-affecting threading. <HostProtectionAttribute(SharedState := True, _ SelfAffectingProcessMgmt := True, _ SelfAffectingThreading := True, UI := True)> _ Private Shared Sub ExecuteBreak() ' This method allows the user to quit the sample. Console.WriteLine("Executing Debugger.Break.") Debugger.Break() Debugger.Log(1, "info", "test message") End Sub 'ExecuteBreak
// Use the enumeration flags to indicate that this method exposes shared // state, self-affecting process management, and self-affecting threading. [HostProtectionAttribute(SharedState=true, SelfAffectingProcessMgmt=true , SelfAffectingThreading=true, UI=true)] // This method allows the user to quit the sample. private static void ExecuteBreak() { Console.WriteLine("Executing Debugger.Break."); Debugger.Break(); Debugger.Log(1,"info","test message"); }
// Use the enumeration flags to indicate that this method exposes shared state, // self-affecting process management, and self-affecting threading. // This method allows the user to quit the sample. [HostProtection(SharedState=true,SelfAffectingProcessMgmt=true , SelfAffectingThreading=true,UI=true)] static void ExecuteBreak() { Console::WriteLine( "Executing Debugger.Break." ); Debugger::Break(); Debugger::Log( 1, "info", "test message" ); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からHostProtectionAttribute.SelfAffectingThreading プロパティを検索する場合は、下記のリンクをクリックしてください。

- HostProtectionAttribute.SelfAffectingThreading プロパティのページへのリンク