Bagikan melalui


ProvideCommandLineSwitchAttribute Kelas

Definisi

Penting

API ini bukan kompatibel CLS.

Kelas atribut untuk menyediakan entri registri untuk berkontribusi sakelar baris perintah

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
Warisan
ProvideCommandLineSwitchAttribute
Atribut

Konstruktor

ProvideCommandLineSwitchAttribute(String, String)

Create atribut ProvideCommandLineSwitch baru

Properti

Arguments

Jumlah argumen ke sakelar baris perintah

DemandLoad

Apakah sakelar baris perintah harus menyebabkan pemuatan deman

HelpText

String bantuan untuk sakelar baris perintah

Name

Nama sakelar baris perintah

TypeId

Ambil alih properti TypeID untuk membiarkan RegistrationAttribute memperoleh kelas untuk bekerja dengan System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut yang berasal dari atribut ini harus mengambil alih properti ini hanya jika membutuhkan kontrol yang lebih baik pada instans yang dapat diterapkan ke kelas.

(Diperoleh dari RegistrationAttribute)

Metode

GetPackageRegKeyPath(Guid)

Mendapatkan jalur registri (relatif terhadap akar registri aplikasi) dari VSPackage.

(Diperoleh dari RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Mendaftarkan sakelar baris perintah baru

Unregister(RegistrationAttribute+RegistrationContext)

Membatalkan pendaftaran sakelar baris perintah

Berlaku untuk