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
'宣告
Public MustInherit Class GlobalType _
Inherits MarshalByRefObject
public abstract class GlobalType : MarshalByRefObject
The GlobalType type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GlobalType | Initializes a new instance of GlobalType. |
Top
Properties
Name | Description | |
---|---|---|
ObjectType | Gets the checked type of the GlobalType. |
Top
Methods
Name | Description | |
---|---|---|
ClearObjectType | Clears the ObjectType property. | |
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.) | |
Equals | Checks if the specified object is equal to the current global type. (Overrides Object.Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Returns the hash code for the current global type. (Overrides Object.GetHashCode().) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetObjectType | Returns the type of this global type. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
OnChanged | Raises the Changed event. | |
OnChanging | Raises the Changing event. | |
OnRemoved | Raises the Removed event. | |
OnRemoving | Raises the Removing event. | |
PerformChange | Reinitializes the global type and notifies users to changes to its shape. | |
PerformRemove | Clears the global type and notifies users of its removal. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
Changed | Occurs after the current global type is modified. | |
Changing | Occurs before the current global type is modified. | |
Removed | Occurs after the current global type is removed from use. | |
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.