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

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

SwitchAttribute.SwitchType プロパティ

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

スイッチの型を取得または設定します

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

Dim instance As SwitchAttribute
Dim value As Type

value = instance.SwitchType

instance.SwitchType = value
public Type SwitchType { get; set;
 }
public:
property Type^ SwitchType {
    Type^ get ();
    void set (Type^ value);
}
/** @property */
public Type get_SwitchType ()

/** @property */
public void set_SwitchType (Type value)
public function get SwitchType
 () : Type

public function set SwitchType
 (value : Type)

プロパティ
スイッチの型を表す Type オブジェクト

例外例外
例外種類条件

ArgumentNullException

P:System.Diagnostics.SwitchAttribute.SwitchType は、null 参照 (Visual Basic では Nothing) に設定されます。

使用例使用例

アセンブリ使用されすべてのスイッチSwitchType プロパティの値を表示するコード例次に示します。このコード例は、TraceSource クラストピック取り上げているコード例一部分です。

Dim switches As SwitchAttribute() = SwitchAttribute.GetAll([Assembly].GetExecutingAssembly())
Dim i As Integer
For i = 0 To switches.Length - 1
    Console.WriteLine("Switch name = " + switches(i).SwitchName.ToString())
    Console.WriteLine("Switch type = " + switches(i).SwitchType.ToString())
Next i
SwitchAttribute[] switches = SwitchAttribute.GetAll(Assembly.GetExecutingAssembly());
for (int i = 0; i < switches.Length; i++)
{
    Console.WriteLine("Switch name = " + switches[i].SwitchName);
    Console.WriteLine("Switch type = " + switches[i].SwitchType);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からSwitchAttribute.SwitchType プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSwitchAttribute.SwitchType プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSwitchAttribute.SwitchType プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS