Aracılığıyla paylaş


RegisterAdditionalEditorExtensionAttribute Sınıf

Tanım

Önemli

Bu API, CLS uyumlu değildir.

Başka hiçbir şey değiştirmeden mevcut düzenleyicilere ek dosya uzantısı işlemesi eklemenin bir yolunu sağlamak için öznitelik sınıfı

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

Oluşturucular

RegisterAdditionalEditorExtensionAttribute(Object, String, Int32)

Yeni bir RegisterAdditionalEditorExtensionAttribute oluşturur.

Özellikler

Extension

Kaydedilecek dosya uzantısı.

Factory

Kaydedilecek düzenleyici fabrikasını tanımlayan guid.

Priority

Kaydedilen uzantı için bu düzenleyicinin önceliği. Daha büyük değerler daha yüksek düzenleyici önceliğini gösterir.

TypeId

RegistrationAttribute türetilmiş sınıflarının System.ComponentModel.TypeDescriptor.GetAttributes(...) ile çalışmasına izin vermek için TypeID özelliğini geçersiz kılın. Bu özellikten türetilen bir özniteliğin, yalnızca bir sınıfa uygulanabilecek örnekler üzerinde daha iyi bir denetime ihtiyacı varsa bu özelliği geçersiz kılması gerekir.

(Devralındığı yer: RegistrationAttribute)

Yöntemler

GetPackageRegKeyPath(Guid)

VSPackage'ın kayıt defteri yolunu (uygulamanın kayıt defteri köküne göre) alır.

(Devralındığı yer: RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Ek düzenleyiciyi kaydedin.

Unregister(RegistrationAttribute+RegistrationContext)

Düzenleyicinin kaydını kaldırma

Şunlara uygulanır