DataViewHierarchyAccessor.CreateObjectNode Method

Creates a new node in the data view hierarchy, but one without context and that is not placed anywhere in the hierarchy tree.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Public Function CreateObjectNode As Integer
'使用
Dim instance As DataViewHierarchyAccessor
Dim returnValue As Integer

returnValue = instance.CreateObjectNode()
public int CreateObjectNode()
public:
int CreateObjectNode()
public function CreateObjectNode() : int

Return Value

Type: System.Int32

Returns an integer value representing the Visual Studio item ID of the new node.

Remarks

A DDEX provider should call this method when they are implementing a "New <object>" command (for example, a "New Table" command) and intend to bring up a designer that will, upon save, add the new object into the hierarchy.

It is only possible to create or drop nodes that represent an object on the data source. It is not possible to dynamically modify the format of the hierarchy by creating or dropping static nodes such as a "Tables" or "Views" node.

Permissions

See Also

Reference

DataViewHierarchyAccessor Class

DataViewHierarchyAccessor Members

Microsoft.VisualStudio.Data Namespace