ProvideAppCommandLineAttribute Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Atribut ini menambahkan opsi commandline untuk devenv untuk jenis paket spekfic. Misalnya: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\AppCommandLine\MyAppCommand "Argumen"="*" "DemandLoad"=dword:1 "Package"="{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}" "HelpString"="#200"
public ref class ProvideAppCommandLineAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideAppCommandLineAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideAppCommandLineAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideAppCommandLineAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class ProvideAppCommandLineAttribute
Inherits RegistrationAttribute
- Warisan
- Atribut
Konstruktor
ProvideAppCommandLineAttribute(String, Type) |
Konstruktor |
Properti
Arguments |
Argumen default untuk baris perintah |
DemandLoad |
Jika paket dimuat permintaan. |
HelpString |
String bantuan yang ditampilkan untuk perintah. Dapat menjadi id sumber daya |
Name |
Nama baris perintah |
PackageGuid |
Guid paket yang menyediakan 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) |
Dipanggil untuk mendaftarkan atribut ini dengan konteks yang diberikan. Konteks berisi lokasi tempat informasi pendaftaran harus ditempatkan. ini juga berisi seperti jenis yang didaftarkan, dan informasi jalur. |
Unregister(RegistrationAttribute+RegistrationContext) |
Batalkan pendaftaran baris perintah Aplikasi ini |