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

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

SwitchLevelAttribute.SwitchLevelType プロパティ

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

トレース書き込むかどうか決定する型を取得または設定します

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

Public Property SwitchLevelType As
 Type
Dim instance As SwitchLevelAttribute
Dim value As Type

value = instance.SwitchLevelType

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

/** @property */
public void set_SwitchLevelType (Type value)
public function get SwitchLevelType
 () : Type

public function set SwitchLevelType
 (value : Type)

プロパティ
トレース書き込むかどうか決定する Type

解説解説

スイッチレベル プロパティは、必ずしも名前付Level である必要はありません。たとえば、BooleanSwitch クラスのレベル プロパティEnabled です。

使用例使用例

BooleanSwitchSwitchLevelType プロパティの値を表示するコード例次に示します

' Display the SwitchLevelAttribute for the BooleanSwitch.
Dim attribs As [Object]() = GetType(BooleanSwitch).GetCustomAttributes(GetType(SwitchLevelAttribute),
 False)
If attribs.Length = 0 Then
    Console.WriteLine("Error, couldn't find SwitchLevelAttribute
 on BooleanSwitch.")
Else
    Console.WriteLine(CType(attribs(0), SwitchLevelAttribute).SwitchLevelType.ToString())
// Display the SwitchLevelAttribute for the BooleanSwitch.
Object[] attribs = typeof(BooleanSwitch).GetCustomAttributes(typeof(SwitchLevelAttribute),
 false);
if (attribs.Length == 0)
    Console.WriteLine("Error, couldn't find SwitchLevelAttribute on BooleanSwitch.");
else
    Console.WriteLine(((SwitchLevelAttribute)attribs[0]).SwitchLevelType.ToString());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SwitchLevelAttribute クラス
SwitchLevelAttribute メンバ
System.Diagnostics 名前空間



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

辞書ショートカット

すべての辞書の索引

「SwitchLevelAttribute.SwitchLevelType プロパティ」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS