共用方式為


KnownUIContexts.SolutionHasSingleProjectContext Property

Gets a UI context indicating that a solution with exactly one project is loaded.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Shared ReadOnly Property SolutionHasSingleProjectContext As UIContext
public static UIContext SolutionHasSingleProjectContext { get; }

Property Value

Type: Microsoft.VisualStudio.Shell.UIContext

.NET Framework Security

See Also

Reference

KnownUIContexts Class

Microsoft.VisualStudio.Shell Namespace