ProvideGlobalObjectProviderAttribute Class

 

Signifies that one or more classes in a package are global object providers. This class cannot be inherited.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.Design.ProvideGlobalObjectProviderAttribute

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ProvideGlobalObjectProviderAttribute : RegistrationAttribute

NameDescription
System_CAPS_pubmethodProvideGlobalObjectProviderAttribute(Type)

Initializes a new instance of the ProvideGlobalObjectProviderAttribute class.

NameDescription
System_CAPS_pubpropertyProviderType

Gets the type of declared global object provider.

System_CAPS_pubpropertyTypeId

Gets a unique identifier associated with the attribute.(Overrides RegistrationAttribute.TypeId.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodRegister(RegistrationAttribute.RegistrationContext)

Registers this attribute using the specified registry context.(Overrides RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext).)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnregister(RegistrationAttribute.RegistrationContext)

Removes this attribute from the registry using the specified registry context.(Overrides RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext).)

The ProvideGlobalObjectProviderAttribute is placed on a package class to declare that it contains one or more classes derived from GlobalObjectProvider. This attribute is only used for registration purposes and does not affect how code behaves when it is executed.

The managed VSPackage registration tool (RegPkg.exe) (see VSPackage Registration) uses this attribute to add registration information about the global object provider so that it is available to design-time tools. You can create the same entries programmatically by calling the Register method.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: