Udostępnij przez


ProvideCommandLineSwitchAttribute Klasa

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Klasa atrybutu w celu udostępnienia wpisów rejestru na potrzeby współtworzenia przełącznika wiersza polecenia

public ref class ProvideCommandLineSwitchAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
[System.CLSCompliant(false)]
public sealed class ProvideCommandLineSwitchAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class ProvideCommandLineSwitchAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.CLSCompliant(false)>]
type ProvideCommandLineSwitchAttribute = class
    inherit RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type ProvideCommandLineSwitchAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideCommandLineSwitchAttribute
Inherits RegistrationAttribute
Dziedziczenie
ProvideCommandLineSwitchAttribute
Atrybuty

Konstruktory

ProvideCommandLineSwitchAttribute(String, String)

Twórca nowy atrybut ProvideCommandLineSwitch

Właściwości

Arguments

Liczba argumentów przełącznika wiersza polecenia

DemandLoad

Czy przełącznik wiersza polecenia powinien spowodować deman-loading

HelpText

Ciąg pomocy dla przełącznika wiersza polecenia

Name

Nazwa przełącznika wiersza polecenia

TypeId

Zastąp właściwość TypeID, aby umożliwić klasom pochodnym RegistrationAttribute pracować z atrybutem System.ComponentModel.TypeDescriptor.GetAttributes(...). Atrybut pochodzący z tego atrybutu będzie musiał zastąpić tę właściwość tylko wtedy, gdy potrzebuje lepszej kontroli nad wystąpieniami, które można zastosować do klasy.

(Odziedziczone po RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)

Pobiera ścieżkę rejestru (względem katalogu głównego rejestru aplikacji) pakietu VSPackage.

(Odziedziczone po RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Rejestrowanie nowego przełącznika wiersza polecenia

Unregister(RegistrationAttribute+RegistrationContext)

Wyrejestrowywanie przełącznika wiersza polecenia

Dotyczy