ProvideCommandLineSwitchAttribute 類別
提供命令列參數的登錄項目。
此應用程式開發介面不符合 CLS 標準。
繼承階層架構
System.Object
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Modeling.Shell.ProvideCommandLineSwitchAttribute
命名空間: Microsoft.VisualStudio.Modeling.Shell
組件: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)
語法
'宣告
<CLSCompliantAttribute(False)> _
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class ProvideCommandLineSwitchAttribute _
Inherits RegistrationAttribute
[CLSCompliantAttribute(false)]
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ProvideCommandLineSwitchAttribute : RegistrationAttribute
ProvideCommandLineSwitchAttribute 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
![]() |
ProvideCommandLineSwitchAttribute | 初始化 ProvideCommandLineSwitchAttribute 類別的新執行個體。 |
回頁首
屬性
名稱 | 描述 | |
---|---|---|
![]() |
Arguments | 取得或設定命令列參數的引數數目。 |
![]() |
DemandLoad | 取得或設定要求負載,決定應該啟用或停用指令行參數的要求載入。 |
![]() |
HelpText | 取得命令列參數的說明文字。 |
![]() |
Name | 取得命令列參數的名稱。 |
![]() |
TypeId | (繼承自 RegistrationAttribute)。 |
回頁首
方法
名稱 | 描述 | |
---|---|---|
![]() |
Equals | 基礎架構。傳回數值,表示這個執行個體是否等於指定的物件。 (繼承自 Attribute)。 |
![]() |
GetHashCode | 傳回這個執行個體的雜湊碼。 (繼承自 Attribute)。 |
![]() |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 |
![]() |
IsDefaultAttribute | 在衍生類別中覆寫時,表示這個執行個體的值是否為衍生類別的預設值。 (繼承自 Attribute)。 |
![]() |
Match | 在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。 (繼承自 Attribute)。 |
![]() |
Register | 註冊命令列參數。 (覆寫 RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext)。) |
![]() |
ToString | 傳回表示目前物件的字串。 (繼承自 Object)。 |
![]() |
Unregister | 移除註冊命令列參數。 (覆寫 RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext)。) |
回頁首
明確介面實作
名稱 | 描述 | |
---|---|---|
![]() ![]() |
_Attribute.GetIDsOfNames | 將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。 (繼承自 Attribute)。 |
![]() ![]() |
_Attribute.GetTypeInfo | 擷取物件的型別資訊,可以用來取得介面的型別資訊。 (繼承自 Attribute)。 |
![]() ![]() |
_Attribute.GetTypeInfoCount | 擷取物件提供的型別資訊介面數目 (0 或 1)。 (繼承自 Attribute)。 |
![]() ![]() |
_Attribute.Invoke | 提供物件所公開的屬性和方法的存取權。 (繼承自 Attribute)。 |
回頁首
備註
此類別無法被繼承。
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。