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

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

SwitchAttribute コンストラクタ

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

スイッチの名前と型を指定して、SwitchAttribute クラス新しインスタンス初期化します。

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

Public Sub New ( _
    switchName As String, _
    switchType As Type _
)
Dim switchName As String
Dim switchType As Type

Dim instance As New SwitchAttribute(switchName,
 switchType)
public SwitchAttribute (
    string switchName,
    Type switchType
)
public:
SwitchAttribute (
    String^ switchName, 
    Type^ switchType
)
public SwitchAttribute (
    String switchName, 
    Type switchType
)
public function SwitchAttribute (
    switchName : String, 
    switchType : Type
)

パラメータ

switchName

スイッチ表示名

switchType

スイッチの型。

解説解説
使用例使用例

SwitchAttribute コンストラクタ使用してスイッチ属性作成するコード例次に示します。このコード例は、TraceSource クラストピック取り上げているコード例一部分です。

<SwitchAttribute("SourceSwitch", GetType(SourceSwitch))>
  _
Shared Sub Main() 
[SwitchAttribute("SourceSwitch", typeof(SourceSwitch))]
static void Main()
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS