Retrieves the specified connection node.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Function Find ( _
obj As IVsDataObject _
) As IVsDataExplorerNode
'使用
Dim instance As IVsDataExplorerChildNodeCollection
Dim obj As IVsDataObject
Dim returnValue As IVsDataExplorerNode
returnValue = instance.Find(obj)
IVsDataExplorerNode Find(
IVsDataObject obj
)
IVsDataExplorerNode^ Find(
IVsDataObject^ obj
)
function Find(
obj : IVsDataObject
) : IVsDataExplorerNode
Parameters
obj
Type: Microsoft.VisualStudio.Data.Services.IVsDataObjectAn IVsDataObject object that identifies the connection node to look for.
Return Value
Type: Microsoft.VisualStudio.Data.Services.IVsDataExplorerNode
An IVsDataExplorerNode object representing the connection node in Server Explorer, or a null reference (Nothing in Visual Basic) if the connection node is not found.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The obj parameter is a null reference (Nothing in Visual Basic). |
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
IVsDataExplorerChildNodeCollection Interface