다음을 통해 공유


GlobalObject Class

Definition

Provides the base class for types whose instances are accessible for each project.

public ref class GlobalObject abstract : Microsoft::VisualStudio::Shell::Design::GlobalType
public abstract class GlobalObject : Microsoft.VisualStudio.Shell.Design.GlobalType
type GlobalObject = class
    inherit GlobalType
Public MustInherit Class GlobalObject
Inherits GlobalType
Inheritance

Constructors

GlobalObject(Type, String)

Initializes a new instance of the GlobalObject class.

Properties

Instance

Gets an on-demand created instance of the global object.

Name

Gets the recommended name of the global object.

ObjectType

Gets the checked type of the GlobalType.

(Inherited from GlobalType)

Methods

ClearInstance()

Clears the Instance property.

ClearObjectType()

Clears the ObjectType property.

(Inherited from GlobalType)
CreateInstance()

Creates a cached instance of the global object.

Equals(Object)

Checks if the specified object is equal to the current global object.

GetHashCode()

Returns the hash code for the current global object.

GetObjectType()

Returns the type of this global type.

(Inherited from GlobalType)
GetSerializer(Type)

Returns the checked serializer of the specified type for the global object.

GetSerializerCore(Type)

Returns a serializer of the specified type for the global object.

OnChanged(EventArgs)

Raises the Changed event.

(Inherited from GlobalType)
OnChanging(EventArgs)

Raises the Changing event.

(Inherited from GlobalType)
OnCreated(EventArgs)

Raises the Created event.

OnRemoved(EventArgs)

Raises the Removed event.

(Inherited from GlobalType)
OnRemoving(EventArgs)

Raises the Removing event.

(Inherited from GlobalType)
PerformChange()

Reinitializes the global object and notifies users to changes to its state or shape.

PerformRemove()

Clears the global object and notifies users of its removal.

Events

Changed

Occurs after the current global type is modified.

(Inherited from GlobalType)
Changing

Occurs before the current global type is modified.

(Inherited from GlobalType)
Created

Occurs when an instance of the global object is created.

Removed

Occurs after the current global type is removed from use.

(Inherited from GlobalType)
Removing

Occurs before the current global type is removed from use.

(Inherited from GlobalType)

Applies to