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
'Declaración
Public Function CreateObjectNode As Integer
public int CreateObjectNode()
public:
int CreateObjectNode()
member CreateObjectNode : unit -> int
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.
.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.