ProvideSourceControlProviderAttribute 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.
Mendaftarkan informasi penyedia Scc. Contoh penggunaan: [ProvideSourceControlProvider(registeredName: "Test Provider", displayNameResourceId: "#100", displayNamePackage: "{92f93057-f1fc-49df-870f-b3474046911a}", registeredProvider: "{92f93057-f1fc-49df-870f-b3474046911b}", sccProviderService: "{92f93057-f1fc-49df-870f-b3474046911c}", IsPublishSupported = true)] Contoh pendaftaran: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\SourceControlProviders{92f93057-f1fc-49df-870f-b3474046911b}] @="Penyedia Uji" "Service"="{92f93057-f1fc-49df-870f-b3474046911c}" "IsPublishSupported"=dword:00000001
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\SourceControlProviders\{92f93057-f1fc-49df-870f-b3474046911b}\Name]
@="#100"
"Package"="{92f93057-f1fc-49df-870f-b3474046911a}"
CATATAN: Semua Guid yang digunakan di atas hanya untuk tujuan ilustrasi. Selain itu, versi diasumsikan 14.0 di atas.
public ref class ProvideSourceControlProviderAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideSourceControlProviderAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideSourceControlProviderAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideSourceControlProviderAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class ProvideSourceControlProviderAttribute
Inherits RegistrationAttribute
- Warisan
- Atribut
Konstruktor
ProvideSourceControlProviderAttribute(String, String, String, String, String) |
Create atribut pendaftaran yang mendaftarkan penyedia Scc |
Properti
DisplayNamePackage |
Mendapatkan panduan paket yang berisi nama tampilan penyedia |
DisplayNameResourceId |
Mendapatkan id sumber daya dari nama tampilan penyedia |
IsPublishSupported |
Mendapatkan/Mengatur apakah penyedia Scc ini mendukung penerbitan ke host jarak jauh |
RegisteredName |
Mendapatkan nama penyedia yang mudah diingat - Nama ini adalah invarian lokal |
RegisteredProvider |
Mendapatkan panduan yang mengidentifikasi penyedia |
SccProviderService |
Mendapatkan panduan layanan penyedia |
TypeId |
Ambil alih properti TypeID untuk memungkinkan 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 terdaftar, dan informasi jalur. |
Unregister(RegistrationAttribute+RegistrationContext) |
Batalkan pendaftaran atribut ini |