SwitchAttribute クラス
クラス、構造体、またはインターフェースをスイッチとして扱う方法を制御します。 このクラスは継承できません。
継承
System.Object
    System.Attribute
    SwitchAttribute
  継承されたメンバー
      System.Attribute.Equals(System.Object)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Module)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    
    
      System.Attribute.GetHashCode()
    
    
      System.Attribute.IsDefaultAttribute()
    
    
      System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    
    
      System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    
    
      System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    
    
      System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    
    
      System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    
    
      System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    
    
      System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    
    
      System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    
    
      System.Attribute.Match(System.Object)
    
    
      System.Attribute.TypeId
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  名前空間: ExapisSOP.IO.Settings.CommandLine
アセンブリ: ExapisSOP.dll
構文
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)]
public sealed class SwitchAttribute : Attribute
  コンストラクタ 一覧
| 編集/提案 ソースを表示SwitchAttribute(String)
型'SwitchAttribute'の新しいインスタンスを生成します。
宣言
public SwitchAttribute(string longName)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String | longName | スイッチの長い名前です。  | 
      
SwitchAttribute(String, String)
型'SwitchAttribute'の新しいインスタンスを生成します。
宣言
public SwitchAttribute(string longName, string shortName)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String | longName | スイッチの長い名前です。  | 
      
| System.String | shortName | スイッチの短い名前です。  | 
      
SwitchAttribute(String, String, String)
型'SwitchAttribute'の新しいインスタンスを生成します。
宣言
public SwitchAttribute(string longName, string shortName, string altName)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String | longName | スイッチの長い名前です。  | 
      
| System.String | shortName | スイッチの短い名前です。  | 
      
| System.String | altName | スイッチの別の名前です。  | 
      
プロパティ 一覧
| 編集/提案 ソースを表示AltName
スイッチの別の名前を取得します。
宣言
public string AltName { get; }
  プロパティ値
| 型 | 説明 | 
|---|---|
| System.String | 
LongName
スイッチの長い名前を取得します。
宣言
public string LongName { get; }
  プロパティ値
| 型 | 説明 | 
|---|---|
| System.String | 
ShortName
スイッチの短い名前を取得します。
宣言
public string ShortName { get; }
  プロパティ値
| 型 | 説明 | 
|---|---|
| System.String |