OptionAttribute クラス
フィールド変数またはプロパティをオプションとして扱う方法を制御します。 このクラスは継承できません。
継承
System.Object
    System.Attribute
    OptionAttribute
  継承されたメンバー
      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.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class OptionAttribute : Attribute
  コンストラクタ 一覧
| 編集/提案 ソースを表示OptionAttribute(String)
型'OptionAttribute'の新しいインスタンスを生成します。
宣言
public OptionAttribute(string longName)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String | longName | オプションの長い名前です。  | 
      
OptionAttribute(String, String)
型'OptionAttribute'の新しいインスタンスを生成します。
宣言
public OptionAttribute(string longName, string shortName)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String | longName | オプションの長い名前です。  | 
      
| System.String | shortName | オプションの短い名前です。  | 
      
OptionAttribute(String, String, String)
型'OptionAttribute'の新しいインスタンスを生成します。
宣言
public OptionAttribute(string longName, string shortName, string altName)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String | longName | オプションの長い名前です。  | 
      
| System.String | shortName | オプションの短い名前です。  | 
      
| System.String | altName | オプションの別の名前です。  | 
      
プロパティ 一覧
| 編集/提案 ソースを表示AltName
オプションの別の名前を取得します。
宣言
public string AltName { get; }
  プロパティ値
| 型 | 説明 | 
|---|---|
| System.String | 
ArgumentConverter
値の型変換に利用するIArgumentConverterの種類を取得または設定します。
宣言
public Type ArgumentConverter { get; set; }
  プロパティ値
| 型 | 説明 | 
|---|---|
| System.Type | 
LongName
オプションの長い名前を取得します。
宣言
public string LongName { get; }
  プロパティ値
| 型 | 説明 | 
|---|---|
| System.String | 
ShortName
オプションの短い名前を取得します。
宣言
public string ShortName { get; }
  プロパティ値
| 型 | 説明 | 
|---|---|
| System.String |