다음을 통해 공유


GlobalType Class

Provides the base class for types that are defined in the project or generated from code.

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

Syntax

‘선언
Public MustInherit Class GlobalType _
    Inherits MarshalByRefObject
‘사용 방법
Dim instance As GlobalType
public abstract class GlobalType : MarshalByRefObject
public ref class GlobalType abstract : public MarshalByRefObject
[<AbstractClassAttribute>]
type GlobalType =  
    class
        inherit MarshalByRefObject
    end
public abstract class GlobalType extends MarshalByRefObject

Remarks

A global type is a standard instanced object, but the type for this object comes from a project in the solution or from generated code.

The GlobalType class provides data about a specific global type. You cannot create global types directly, but often you need to track them for type changes, additions, and removals. GlobalType inherits from MarshalByRefObject so that GlobalObject, which derives from GlobalType, can have its instances marshaled across domains.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    Microsoft.VisualStudio.Shell.Design.GlobalType
      Microsoft.VisualStudio.Shell.Design.GlobalObject

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

GlobalType Members

Microsoft.VisualStudio.Shell.Design Namespace

GlobalObject