Share via


vsContextGuids Class

Contains context GUIDs, each of which represents a given IDE state, such as if a Visual C# project is open, or the Visual Basic editor is open. This enumeration is passed as an argument to AddNamedCommand and AddNamedCommand2.

Inheritance Hierarchy

System.Object
  VSLangProj80.vsContextGuids

Namespace:  VSLangProj80
Assembly:  VSLangProj80 (in VSLangProj80.dll)

Syntax

'Declaration
<GuidAttribute("0FECB64A-8779-4A7B-B7CD-226DD6531FB1")> _
Public MustInherit Class vsContextGuids
[GuidAttribute("0FECB64A-8779-4A7B-B7CD-226DD6531FB1")]
public abstract class vsContextGuids
[GuidAttribute(L"0FECB64A-8779-4A7B-B7CD-226DD6531FB1")]
public ref class vsContextGuids abstract
[<AbstractClass>]
[<GuidAttribute("0FECB64A-8779-4A7B-B7CD-226DD6531FB1")>]
type vsContextGuids =  class end
public abstract class vsContextGuids

The vsContextGuids type exposes the following members.

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from 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 Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member vsContextGuidVBEditor Represents whether Visual Basic code is open in the editor.
Public fieldStatic member vsContextGuidVBProject Represents whether a Visual Basic project is present in the IDE.
Public fieldStatic member vsContextGuidVCSEditor Represents whether Visual C# code is open in the editor.
Public fieldStatic member vsContextGuidVCSProject Represents whether a Visual C# project is present in the IDE.
Public fieldStatic member vsContextGuidVJSEditor Represents whether code is open in the editor.
Public fieldStatic member vsContextGuidVJSProject Represents whether a project is present in the IDE.

Top

Remarks

The command will be visible if the enumeration's related context GUID is active. If it is not active, then the command will not be visible.

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

VSLangProj80 Namespace