Condividi tramite


vcContextGuids Class

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.VCProject.vcContextGuids

Namespace:  Microsoft.VisualStudio.VCProject
Assembly:  Microsoft.VisualStudio.VCProject (in Microsoft.VisualStudio.VCProject.dll)

Syntax

'Dichiarazione
<GuidAttribute("0FECB64A-8779-4A7B-B7CD-226DD6531FB1")> _
Public NotInheritable Class vcContextGuids
[GuidAttribute("0FECB64A-8779-4A7B-B7CD-226DD6531FB1")]
public static class vcContextGuids
[GuidAttribute(L"0FECB64A-8779-4A7B-B7CD-226DD6531FB1")]
public ref class vcContextGuids abstract sealed
[<AbstractClass>]
[<Sealed>]
[<GuidAttribute("0FECB64A-8779-4A7B-B7CD-226DD6531FB1")>]
type vcContextGuids =  class end
public final class vcContextGuids

The vcContextGuids type exposes the following members.

Fields

  Name Description
Public fieldStatic member vcContextGuidVCEditor Represents whether Visual C++ code is open in the editor.
Public fieldStatic member vcContextGuidVCProject Represents whether a Visual C++ 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

Microsoft.VisualStudio.VCProject Namespace