返回数据对象的索引。与指定的标识符的集合。
命名空间: Microsoft.VisualStudio.Data.Services
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
Function IndexOf ( _
identifier As String _
) As Integer
int IndexOf(
string identifier
)
int IndexOf(
String^ identifier
)
abstract IndexOf :
identifier:string -> int
function IndexOf(
identifier : String
) : int
参数
- identifier
类型:System.String
包含唯一标识请求的数据对象的标识符部件的字符串,用分隔符。
返回值
类型:System.Int32
整数值,大于或等于0,表示数据对象的索引。与指定的标识符的集合的或-1;如果找不到数据对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。