你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ServiceTypeList 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示服务类型的列表。
public sealed class ServiceTypeList : System.Collections.Generic.ICollection<System.Fabric.Query.ServiceType>, System.Collections.Generic.IEnumerable<System.Fabric.Query.ServiceType>, System.Collections.Generic.IList<System.Fabric.Query.ServiceType>
type ServiceTypeList = class
interface IList<ServiceType>
interface ICollection<ServiceType>
interface seq<ServiceType>
interface IEnumerable
Public NotInheritable Class ServiceTypeList
Implements ICollection(Of ServiceType), IEnumerable(Of ServiceType), IList(Of ServiceType)
- 继承
-
ServiceTypeList
- 实现
属性
Count |
获取或设置 ServiceTypeList 中的元素数。 |
IsReadOnly |
获取或设置 是否 ServiceTypeList 为只读。 |
Item[Int32] |
获取或设置指定索引处的元素。 |
方法
Add(ServiceType) |
将对象添加到 ServiceTypeList 的结尾处。 |
Clear() |
从 ServiceTypeList 中移除所有元素。 |
Contains(ServiceType) |
确定元素是否位于 中 ServiceTypeList。 |
CopyTo(ServiceType[], Int32) |
从目标数组的指定索引处开始将整个 ServiceTypeList 复制到兼容的一维 ServiceTypeList。 |
GetEnumerator() |
返回整个 ServiceTypeList的枚举数。 |
IndexOf(ServiceType) |
搜索指定的 ServiceType,并返回整个 ServiceTypeList 中第一个匹配项的从零开始的索引。 |
Insert(Int32, ServiceType) |
将元素插入 ServiceTypeList 的指定索引处。 |
Remove(ServiceType) |
从 中移除特定 对象的 ServiceTypeList第一个匹配项。 |
RemoveAt(Int32) |
移除 的指定索引处的 ServiceTypeList元素。 |
显式接口实现
IEnumerable.GetEnumerator() |
返回 的 ServiceTypeList枚举器。 |
扩展方法
ToCommaSeparatedString<T>(IEnumerable<T>) |
将集合的元素转换为字符串,并将它们连接成逗号分隔的列表,或返回 null 或空集合的 null。 |