ProvideToolWindowVisibilityAttribute Constructor

Initializes a new instance of ProvideToolWindowVisibilityAttribute for the specified type of the tool window and a GUID to associate with its visibility.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

声明
Public Sub New ( _
    toolWindow As Object, _
    commandUIGuid As String _
)
用法
Dim toolWindow As Object
Dim commandUIGuid As String

Dim instance As New ProvideToolWindowVisibilityAttribute(toolWindow, _
    commandUIGuid)
public ProvideToolWindowVisibilityAttribute(
    Object toolWindow,
    string commandUIGuid
)
public:
ProvideToolWindowVisibilityAttribute(
    Object^ toolWindow, 
    String^ commandUIGuid
)
new : 
        toolWindow:Object * 
        commandUIGuid:string -> ProvideToolWindowVisibilityAttribute
public function ProvideToolWindowVisibilityAttribute(
    toolWindow : Object, 
    commandUIGuid : String
)

Parameters

  • toolWindow
    Type: System.Object
    The types of the tool window. This can be the type, the GUID, or the string value of the GUID.
  • commandUIGuid
    Type: System.String
    The GUID of the tool window to which the automatic visibility behavior should be applied.

Remarks

Automatic display and hiding of the Tool Window is accomplished by mapping the commandUIGuid to one or more UI contexts in the VISIBILITY_SECTION – VISIBILITY_END section of the associated .ctc file.

.NET Framework Security

See Also

Reference

ProvideToolWindowVisibilityAttribute Class

ProvideToolWindowVisibilityAttribute Members

Microsoft.VisualStudio.Shell Namespace