共用方式為


ProvideToolboxItemDiscoveryAttribute.VisibilityUIContexts Property

Gets or sets a list of UIContexts that controls the visibility of the tab. The tab is hidden if none of the UI contexts are set. Only non-dynamic UI contexts are supported (for example, OsWindows8OrHigherContext). Use of dynamic contexts like NoSolutionContext is not supported and results in non-deterministic behaviors.

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

Syntax

'宣告
Public Property VisibilityUIContexts As String()
public string[] VisibilityUIContexts { get; set; }

Property Value

Type: array<System.String[]

.NET Framework Security

See Also

Reference

ProvideToolboxItemDiscoveryAttribute Class

Microsoft.VisualStudio.Shell Namespace