DebuggerTypeProxyAttribute コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DebuggerTypeProxyAttribute コンストラクタの意味・解説 

DebuggerTypeProxyAttribute コンストラクタ (String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

プロキシ型名使用して、DebuggerTypeProxyAttribute クラス新しインスタンス初期化します。

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

Dim typeName As String

Dim instance As New DebuggerTypeProxyAttribute(typeName)
public DebuggerTypeProxyAttribute (
    string typeName
)
public:
DebuggerTypeProxyAttribute (
    String^ typeName
)
public DebuggerTypeProxyAttribute (
    String typeName
)
public function DebuggerTypeProxyAttribute
 (
    typeName : String
)

パラメータ

typeName

プロキシ型型名

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DebuggerTypeProxyAttribute クラス
DebuggerTypeProxyAttribute メンバ
System.Diagnostics 名前空間

DebuggerTypeProxyAttribute コンストラクタ (Type)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

プロキシの型を使用して、DebuggerTypeProxyAttribute クラス新しインスタンス初期化します。

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

Dim type As Type

Dim instance As New DebuggerTypeProxyAttribute(type)
public DebuggerTypeProxyAttribute (
    Type type
)
public:
DebuggerTypeProxyAttribute (
    Type^ type
)
public DebuggerTypeProxyAttribute (
    Type type
)
public function DebuggerTypeProxyAttribute
 (
    type : Type
)

パラメータ

type

プロキシ型を表す Type オブジェクト

例外例外
例外種類条件

ArgumentNullException

typenull 参照 (Visual Basic では Nothing) です。

解説解説
使用例使用例

DebuggerTypeProxyAttribute(Type) コンストラクタ使用してデバッガ表示プロキシ指定する方法次のコード例示します。このコード例は、DebuggerDisplayAttribute クラストピック取り上げているコード例一部分です。

[DebuggerTypeProxy(typeof(HashtableDebugView))]
class MyHashtable : Hashtable
{
    private const string
 TestString = "This should not appear in the debug window.";

    internal class HashtableDebugView
   {
      private Hashtable hashtable;
      public const string
 TestString = "This should appear in the debug window.";
      public HashtableDebugView(Hashtable hashtable)
      {
         this.hashtable = hashtable;
      }

      [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
      public KeyValuePairs[] Keys
      {
         get 
         {
             KeyValuePairs[] keys = new KeyValuePairs[hashtable.Count];

            int i = 0;
            foreach(object key in hashtable.Keys)
            {
               keys[i] = new KeyValuePairs(hashtable, key, hashtable[key]);
               i++;
            }
         return keys;
         }
      }
   }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DebuggerTypeProxyAttribute クラス
DebuggerTypeProxyAttribute メンバ
System.Diagnostics 名前空間

DebuggerTypeProxyAttribute コンストラクタ

プロキシの型を使用して、DebuggerTypeProxyAttribute クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
DebuggerTypeProxyAttribute (String) プロキシ型名使用してDebuggerTypeProxyAttribute クラス新しインスタンス初期化します。
DebuggerTypeProxyAttribute (Type) プロキシの型を使用してDebuggerTypeProxyAttribute クラス新しインスタンス初期化します。
参照参照

関連項目

DebuggerTypeProxyAttribute クラス
DebuggerTypeProxyAttribute メンバ
System.Diagnostics 名前空間



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

辞書ショートカット

すべての辞書の索引

「DebuggerTypeProxyAttribute コンストラクタ」の関連用語

DebuggerTypeProxyAttribute コンストラクタのお隣キーワード
検索ランキング

   

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



DebuggerTypeProxyAttribute コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS