Share via


GlobalType Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class GlobalType _
    Inherits MarshalByRefObject
public abstract class GlobalType : MarshalByRefObject
public ref class GlobalType abstract : public MarshalByRefObject
[<AbstractClass>]
type GlobalType =  
    class
        inherit MarshalByRefObject
    end
public abstract class GlobalType extends MarshalByRefObject

The GlobalType type exposes the following members.

Constructors

  Name Description
Protected method GlobalType Initializes a new instance of GlobalType.

Top

Properties

  Name Description
Public property ObjectType Gets the checked type of the GlobalType.

Top

Methods

  Name Description
Protected method ClearObjectType Clears the ObjectType property.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Equals Checks if the specified object is equal to the current global type. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for the current global type. (Overrides Object.GetHashCode().)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetObjectType Returns the type of this global type.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Protected method OnChanged Raises the Changed event.
Protected method OnChanging Raises the Changing event.
Protected method OnRemoved Raises the Removed event.
Protected method OnRemoving Raises the Removing event.
Protected method PerformChange Reinitializes the global type and notifies users to changes to its shape.
Protected method PerformRemove Clears the global type and notifies users of its removal.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event Changed Occurs after the current global type is modified.
Public event Changing Occurs before the current global type is modified.
Public event Removed Occurs after the current global type is removed from use.
Public event Removing Occurs before the current global type is removed from use.

Top

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.

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

Microsoft.VisualStudio.Shell.Design Namespace

GlobalObject