Compartir a través de


GlobalObjectProviderFactory Class

Provides a base class for enumerating global object providers.

This API is not CLS-compliant. The CLS-compliant alternative is [None].

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

Syntax

'Declaración
<CLSCompliantAttribute(False)> _
<GuidAttribute("39FD482D-C76C-4dd4-9E06-FB7C52F69C8A")> _
Public MustInherit Class GlobalObjectProviderFactory _
    Inherits MarshalByRefObject
'Uso
Dim instance As GlobalObjectProviderFactory
[CLSCompliantAttribute(false)]
[GuidAttribute("39FD482D-C76C-4dd4-9E06-FB7C52F69C8A")]
public abstract class GlobalObjectProviderFactory : MarshalByRefObject
[CLSCompliantAttribute(false)]
[GuidAttribute(L"39FD482D-C76C-4dd4-9E06-FB7C52F69C8A")]
public ref class GlobalObjectProviderFactory abstract : public MarshalByRefObject
[<AbstractClassAttribute>]
[<CLSCompliantAttribute(false)>]
[<GuidAttribute("39FD482D-C76C-4dd4-9E06-FB7C52F69C8A")>]
type GlobalObjectProviderFactory =  
    class
        inherit MarshalByRefObject
    end
public abstract class GlobalObjectProviderFactory extends MarshalByRefObject

Remarks

The GlobalObjectProviderFactory class provides a mechanism for enumerating global object providers.

Design-time tools that are concerned only with accessing a list of current global objects or types instead typically use the GetGlobalObjects or GetGlobalTypes methods of the GlobalObjectService class.

There is a default implementation of this mechanism built into Microsoft Visual Studio design environment. This implementation looks in the registry for all available global object providers on each call; it does not cache any data. Custom project types may specify which global objects are returned by providing a class derived from GlobalObjectProviderFactory in their project context. This will preempt the service that is built into the design package.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    Microsoft.VisualStudio.Shell.Design.GlobalObjectProviderFactory

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

GlobalObjectProviderFactory Members

Microsoft.VisualStudio.Shell.Design Namespace

GlobalObjectProvider

GlobalObjectService