Freigeben über


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)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class ProvideGlobalObjectProviderAttribute _
    Inherits RegistrationAttribute
'Usage
Dim instance As ProvideGlobalObjectProviderAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ProvideGlobalObjectProviderAttribute : RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class ProvideGlobalObjectProviderAttribute sealed : public RegistrationAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)>]
type ProvideGlobalObjectProviderAttribute =  
    class
        inherit RegistrationAttribute
    end
public final class ProvideGlobalObjectProviderAttribute extends RegistrationAttribute

Remarks

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.

Inheritance Hierarchy

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

Thread Safety

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

See Also

Reference

ProvideGlobalObjectProviderAttribute Members

Microsoft.VisualStudio.Shell.Design Namespace

GlobalObjectProvider

Register