OptionAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コマンド ライン オプションを示します。 オプションは、コマンド ラインから名前付きパラメーターとして渡されます。
public ref class OptionAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public class OptionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)>]
type OptionAttribute = class
inherit Attribute
Public Class OptionAttribute
Inherits Attribute
- 継承
-
OptionAttribute
- 属性
コンストラクター
| Name | 説明 |
|---|---|
| OptionAttribute() |
コマンド ライン オプションを示します。 オプションは、コマンド ラインから名前付きパラメーターとして渡されます。 |
プロパティ
| Name | 説明 |
|---|---|
| DefaultValue |
ユーザーがこのオプションの値を渡さなかった場合に設定する省略可能な既定値。 |
| Description |
オプションのヘルプ文字列が表示されます。 |
| Name |
オプションの名前です。 通常、プレフィックス --.と共に渡されます Name が設定されていない場合、属性が宣言されているプロパティの名前が想定されます。 |
| ShortName |
便宜上の ShortName。 通常、プレフィックス - で渡されます。 |