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)

public abstract class GlobalType : MarshalByRefObject

The GlobalType type exposes the following members.

  NameDescription
Protected methodGlobalTypeInitializes a new instance of GlobalType.
Top

  NameDescription
Public propertyObjectTypeGets the checked type of the GlobalType.
Top

  NameDescription
Protected methodClearObjectTypeClears the ObjectType property.
Public methodCreateObjRefSecurity Critical. 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 methodEqualsChecks if the specified object is equal to the current global type. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for the current global type. (Overrides Object.GetHashCode().)
Public methodGetLifetimeServiceSecurity Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetObjectTypeReturns the type of this global type.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceSecurity Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Protected methodOnChangedRaises the Changed event.
Protected methodOnChangingRaises the Changing event.
Protected methodOnRemovedRaises the Removed event.
Protected methodOnRemovingRaises the Removing event.
Protected methodPerformChangeReinitializes the global type and notifies users to changes to its shape.
Protected methodPerformRemoveClears the global type and notifies users of its removal.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventChangedOccurs after the current global type is modified.
Public eventChangingOccurs before the current global type is modified.
Public eventRemovedOccurs after the current global type is removed from use.
Public eventRemovingOccurs before the current global type is removed from use.
Top

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.

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