Initializes a new instance of the DataViewSelectionMenuCommand class with the command and the view hierarchy.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
<CLSCompliantAttribute(False)> _
Public Sub New ( _
command As CommandID, _
viewHierarchy As IVsDataViewHierarchy _
)
'使用
Dim command As CommandID
Dim viewHierarchy As IVsDataViewHierarchy
Dim instance As New DataViewSelectionMenuCommand(command, _
viewHierarchy)
[CLSCompliantAttribute(false)]
public DataViewSelectionMenuCommand(
CommandID command,
IVsDataViewHierarchy viewHierarchy
)
[CLSCompliantAttribute(false)]
public:
DataViewSelectionMenuCommand(
CommandID^ command,
IVsDataViewHierarchy^ viewHierarchy
)
public function DataViewSelectionMenuCommand(
command : CommandID,
viewHierarchy : IVsDataViewHierarchy
)
Parameters
command
Type: System.ComponentModel.Design.CommandIDA CommandID that uniquely identifies the command.
viewHierarchy
Type: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataViewHierarchyAn IVsDataViewHierarchy containing the collection of selected nodes for one data connection.
Permissions
- 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.
See Also
Reference
DataViewSelectionMenuCommand Class
DataViewSelectionMenuCommand Members