ReadOnlyList<T>.Contains 方法
Indicates whether the list contains a specific value.
命名空间: Microsoft.SqlServer.Management.Sdk.Sfc
程序集: Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
语法
声明
Public Function Contains ( _
item As T _
) As Boolean
用法
Dim instance As ReadOnlyList
Dim item As T
Dim returnValue As Boolean
returnValue = instance.Contains(item)
public bool Contains(
T item
)
public:
virtual bool Contains(
T item
) sealed
abstract Contains :
item:'T -> bool
override Contains :
item:'T -> bool
public final function Contains(
item : T
) : boolean
参数
- item
类型:T
The object to locate in the list.
返回值
类型:System.Boolean
True if an item is found in the list; otherwise, false.
实现
IReadOnlyCollection<T>.Contains(T)