DebuggerNonUserCodeAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<SerializableAttribute> _ <AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Struct Or AttributeTargets.Constructor Or AttributeTargets.Method Or AttributeTargets.Property, Inherited:=False)> _ <ComVisibleAttribute(True)> _ Public NotInheritable Class DebuggerNonUserCodeAttribute Inherits Attribute
[SerializableAttribute] [AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property, Inherited=false)] [ComVisibleAttribute(true)] public sealed class DebuggerNonUserCodeAttribute : Attribute
[SerializableAttribute] [AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Struct|AttributeTargets::Constructor|AttributeTargets::Method|AttributeTargets::Property, Inherited=false)] [ComVisibleAttribute(true)] public ref class DebuggerNonUserCodeAttribute sealed : public Attribute
/** @attribute SerializableAttribute() */ /** @attribute AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property, Inherited=false) */ /** @attribute ComVisibleAttribute(true) */ public final class DebuggerNonUserCodeAttribute extends Attribute

ユーザーが作成したコードの一部ではなく、デザイナに用意された型およびメンバにより、デバッグ作業が複雑化することがあります。この属性を適用すると、これらの補助的な型およびメンバはデバッガ ウィンドウに表示されず、デザイナのコードのステップ インではなくステップ実行が自動的に開始されます。デバッガがユーザー コードのステップ実行中にこの属性を検出すると、デザイナのコードをユーザーに表示せずに、ユーザーが作成した次のコード ステートメントに移動します。
![]() |
---|
共通言語ランタイムは、この属性にセマンティクスを割り当てません。これは、ソース コード デバッガで使用するために提供されています。たとえば、Visual Studio 2005 では、デバッガはこの属性を含む要素をデバッガ ウィンドウに表示せず、この属性を含むメソッドで停止せず、ブレークポイントをメソッドに設定することを許可しません。 |
DebuggerNonUserCodeAttribute が存在する場合のデバッガの動作は、DebuggerHiddenAttribute 属性 (コードをデバッガから隠す) と DebuggerStepThroughAttribute 属性 (適用対象のコードのステップ インではなくステップ実行を開始するようにデバッガに指示する) の組み合わせに似ています。


System.Attribute
System.Diagnostics.DebuggerNonUserCodeAttribute


Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDebuggerNonUserCodeAttribute クラスを検索する場合は、下記のリンクをクリックしてください。

- DebuggerNonUserCodeAttribute クラスのページへのリンク