检索连接节点的索引与指定的名称对应。
命名空间: Microsoft.VisualStudio.Data.Services
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
Function IndexOf ( _
name As String _
) As Integer
int IndexOf(
string name
)
int IndexOf(
String^ name
)
abstract IndexOf :
name:string -> int
function IndexOf(
name : String
) : int
参数
- name
类型:System.String
连接节点访问的名称索引。
返回值
类型:System.Int32
连接节点的索引在服务器资源管理器中,因此,如果找到;否则,-1。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。