GlobalObjectProvider Class

Provides a base class for accessing one or more global object types.

This API is not CLS-compliant. 

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

Syntax

‘선언
<CLSCompliantAttribute(False)> _
<ComVisibleAttribute(True)> _
Public MustInherit Class GlobalObjectProvider _
    Inherits MarshalByRefObject _
    Implements IDisposable, IObjectWithSite
‘사용 방법
Dim instance As GlobalObjectProvider
[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
public abstract class GlobalObjectProvider : MarshalByRefObject, 
    IDisposable, IObjectWithSite
[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
public ref class GlobalObjectProvider abstract : public MarshalByRefObject, 
    IDisposable, IObjectWithSite
[<AbstractClassAttribute>]
[<CLSCompliantAttribute(false)>]
[<ComVisibleAttribute(true)>]
type GlobalObjectProvider =  
    class
        inherit MarshalByRefObject
        interface IDisposable
        interface IObjectWithSite
    end
public abstract class GlobalObjectProvider extends MarshalByRefObject implements IDisposable, IObjectWithSite

Remarks

The GlobalObjectProvider class provides information on the global objects available to the current project; for example, the class provides a list of global objects to the global object service. There is one global object provider for all project-level resource files, and another for each strongly typed dataset.

In the Visual Studio design-time environment, global object providers are created through the Visual Studio ILocalRegistry construct and are sited through IObjectWithSite during creation. When a provider is no longer needed by a global object service, the global object service disposes of the provider.

Inheritance Hierarchy

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

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

GlobalObjectProvider Members

Microsoft.VisualStudio.Shell.Design Namespace

GlobalObject

GlobalType

GlobalObjectService