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
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Sub New ( _
toolWindow As Object, _
commandUIGuid As String _
)
public ProvideToolWindowVisibilityAttribute(
Object toolWindow,
string commandUIGuid
)
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.