检索连接节点和指定类型名称和标识符相对应。
命名空间: Microsoft.VisualStudio.Data.Services
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
Function Find ( _
typeName As String, _
identifier As Object() _
) As IVsDataExplorerNode
IVsDataExplorerNode Find(
string typeName,
Object[] identifier
)
IVsDataExplorerNode^ Find(
String^ typeName,
array<Object^>^ identifier
)
abstract Find :
typeName:string *
identifier:Object[] -> IVsDataExplorerNode
function Find(
typeName : String,
identifier : Object[]
) : IVsDataExplorerNode
参数
- typeName
类型:System.String
请求的数据对象的类型的名称。
- identifier
类型:array<System.Object[]
数组唯一标识请求的数据对象的标识符部件。
返回值
类型:Microsoft.VisualStudio.Data.Services.IVsDataExplorerNode
IVsDataExplorerNode 对象表示在服务器资源管理器中连接节点或 nullnull 引用(在 Visual Basic 中为 Nothing),如果没有找到该节点。
异常
异常 | 条件 |
---|---|
ArgumentNullException | typeName 或 identifier 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。