表示字符串列表用于指定参数传递给 Microsoft.TeamFoundation.Build.WorkFlow.Activities 命名空间选件类。
继承层次结构
System.Object
System.Collections.Generic.List<String>
Microsoft.TeamFoundation.Build.Workflow.Activities.StringList
命名空间: Microsoft.TeamFoundation.Build.Workflow.Activities
程序集: Microsoft.TeamFoundation.Build.Workflow(在 Microsoft.TeamFoundation.Build.Workflow.dll 中)
语法
声明
<SerializableAttribute> _
Public Class StringList _
Inherits List(Of String)
[SerializableAttribute]
public class StringList : List<string>
StringList 类型公开以下成员。
构造函数
| 名称 | 描述 | |
|---|---|---|
![]() |
StringList() | 初始化此 StringList 选件类的新实例。 |
![]() |
StringList(IEnumerable<String>) | 初始化 StringList 选件类的新实例与字符串的指定可枚举集合。 |
![]() |
StringList(String) | 初始化使用指定的 StringList 选件类的新实例逗号分隔列表。 |
页首
属性
| 名称 | 描述 | |
|---|---|---|
![]() |
Capacity | 获取或设置该内部数据结构在不调整大小的情况下能够容纳的元素总数。 (继承自 List<String>。) |
![]() |
Count | 获取 List<T> 中包含的元素数。 (继承自 List<String>。) |
![]() |
Item | 获取或设置指定索引处的元素。 (继承自 List<String>。) |
页首
方法
| 名称 | 描述 | |
|---|---|---|
![]() |
Add | 将对象添加到 List<T> 的结尾处。 (继承自 List<String>。) |
![]() |
AddRange | 将指定集合的元素添加到 List<T> 的末尾。 (继承自 List<String>。) |
![]() |
AsReadOnly | 返回当前集合的只读 IList<T> 包装器。 (继承自 List<String>。) |
![]() |
BinarySearch(T) | 使用默认的比较器在整个已排序的 List<T> 中搜索元素,并返回该元素从零开始的索引。 (继承自 List<String>。) |
![]() |
BinarySearch(T, IComparer<T>) | 使用指定的比较器在整个已排序的 List<T> 中搜索元素,并返回该元素从零开始的索引。 (继承自 List<String>。) |
![]() |
BinarySearch(Int32, Int32, T, IComparer<T>) | 使用指定的比较器在已排序 List<T> 的某个元素范围中搜索元素,并返回该元素从零开始的索引。 (继承自 List<String>。) |
![]() |
Clear | 从 List<T> 中移除所有元素。 (继承自 List<String>。) |
![]() |
Contains | 确定某元素是否在 List<T> 中。 (继承自 List<String>。) |
![]() |
ConvertAll<TOutput> | 将当前 List<T> 中的元素转换为另一种类型,并返回包含已转换元素的列表。 (继承自 List<String>。) |
![]() |
CopyTo(array<T[]) | 从目标数组的开头开始,将整个 List<T> 复制到兼容的一维数组。 (继承自 List<String>。) |
![]() |
CopyTo(array<T[], Int32) | 从目标数组的指定索引处开始,将整个 List<T> 复制到兼容的一维数组。 (继承自 List<String>。) |
![]() |
CopyTo(Int32, array<T[], Int32, Int32) | 从目标数组的指定索引处开始,将元素的范围从 List<T> 复制到兼容的一维数组。 (继承自 List<String>。) |
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
Exists | 确定 List<T> 是否包含与指定谓词定义的条件匹配的元素。 (继承自 List<String>。) |
![]() |
Finalize | 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
Find | 搜索与指定谓词所定义的条件相匹配的元素,并返回整个 List<T> 中的第一个匹配元素。 (继承自 List<String>。) |
![]() |
FindAll | 检索与指定谓词定义的条件匹配的所有元素。 (继承自 List<String>。) |
![]() |
FindIndex(Predicate<T>) | 搜索与指定谓词所定义的条件相匹配的元素,并返回整个 List<T> 中第一个匹配元素的从零开始的索引。 (继承自 List<String>。) |
![]() |
FindIndex(Int32, Predicate<T>) | 搜索与指定谓词所定义的条件相匹配的元素,并返回 List<T> 中从指定索引到最后一个元素的元素范围内第一个匹配项的从零开始的索引。 (继承自 List<String>。) |
![]() |
FindIndex(Int32, Int32, Predicate<T>) | 搜索与指定谓词所定义的条件相匹配的一个元素,并返回 List<T> 中从指定的索引开始、包含指定元素个数的元素范围内第一个匹配项的从零开始的索引。 (继承自 List<String>。) |
![]() |
FindLast | 搜索与指定谓词所定义的条件相匹配的元素,并返回整个 List<T> 中的最后一个匹配元素。 (继承自 List<String>。) |
![]() |
FindLastIndex(Predicate<T>) | 搜索与指定谓词所定义的条件相匹配的元素,并返回整个 List<T> 中最后一个匹配元素的从零开始的索引。 (继承自 List<String>。) |
![]() |
FindLastIndex(Int32, Predicate<T>) | 搜索与由指定谓词定义的条件相匹配的元素,并返回 List<T> 中从第一个元素到指定索引的元素范围内最后一个匹配项的从零开始的索引。 (继承自 List<String>。) |
![]() |
FindLastIndex(Int32, Int32, Predicate<T>) | 搜索与指定谓词所定义的条件相匹配的元素,并返回 List<T> 中包含指定元素个数、到指定索引结束的元素范围内最后一个匹配项的从零开始的索引。 (继承自 List<String>。) |
![]() |
ForEach | 对 List<T> 的每个元素执行指定操作。 (继承自 List<String>。) |
![]() |
GetEnumerator | 返回循环访问 List<T> 的枚举数。 (继承自 List<String>。) |
![]() |
GetHashCode | 作为默认哈希函数。 (继承自 Object。) |
![]() |
GetRange | 在源 List<T> 中创建元素范围的浅表复制。 (继承自 List<String>。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
IndexOf(T) | 搜索指定的对象,并返回整个 List<T> 中第一个匹配项的从零开始的索引。 (继承自 List<String>。) |
![]() |
IndexOf(T, Int32) | 搜索指定对象并返回 List<T> 中从指定索引到最后一个元素这部分元素中第一个匹配项的从零开始索引。 (继承自 List<String>。) |
![]() |
IndexOf(T, Int32, Int32) | 搜索指定对象并返回 List<T> 中从指定索引开始并包含指定元素数的这部分元素中第一个匹配项的从零开始索引。 (继承自 List<String>。) |
![]() |
Insert | 将元素插入 List<T> 的指定索引处。 (继承自 List<String>。) |
![]() |
InsertRange | 将集合中的元素插入 List<T> 的指定索引处。 (继承自 List<String>。) |
![]() |
LastIndexOf(T) | 搜索指定对象并返回整个 List<T> 中最后一个匹配项的从零开始索引。 (继承自 List<String>。) |
![]() |
LastIndexOf(T, Int32) | 搜索指定对象并返回 List<T> 中从第一个元素到指定索引这部分元素中最后一个匹配项的从零开始的索引。 (继承自 List<String>。) |
![]() |
LastIndexOf(T, Int32, Int32) | 搜索指定对象并返回 List<T> 中到指定索引为止包含指定元素数的这部分元素中最后一个匹配项的从零开始索引。 (继承自 List<String>。) |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
Remove(T) | 从 List<T> 中移除特定对象的第一个匹配项。 (继承自 List<String>。) |
![]() |
Remove(IEnumerable<String>) | 从此字符串移除指定的列表。 |
![]() |
RemoveAll | 移除与指定的谓词所定义的条件相匹配的所有元素。 (继承自 List<String>。) |
![]() |
RemoveAt | 移除 List<T> 的指定索引处的元素。 (继承自 List<String>。) |
![]() |
RemoveRange | 从 List<T> 中移除一系列元素。 (继承自 List<String>。) |
![]() |
Reverse() | 将整个 List<T> 中元素的顺序反转。 (继承自 List<String>。) |
![]() |
Reverse(Int32, Int32) | 将指定范围中元素的顺序反转。 (继承自 List<String>。) |
![]() |
Sort() | 使用默认比较器对整个 List<T> 中的元素进行排序。 (继承自 List<String>。) |
![]() |
Sort(IComparer<T>) | 使用指定的比较器对整个 List<T> 中的元素进行排序。 (继承自 List<String>。) |
![]() |
Sort(Comparison<T>) | 使用指定的 System.Comparison<T>,对整个 List<T> 中的元素进行排序。 (继承自 List<String>。) |
![]() |
Sort(Int32, Int32, IComparer<T>) | 使用指定的比较器对 List<T> 中某个范围内的元素进行排序。 (继承自 List<String>。) |
![]() |
ToArray | 将 List<T> 的元素复制到新数组中。 (继承自 List<String>。) |
![]() |
ToString | 获取描述此实例的属性一个用户可读的字符串。 (重写 Object.ToString()。) |
![]() |
TrimExcess | 将容量设置为 List<T> 中元素的实际数目(如果该数目小于某个阈值)。 (继承自 List<String>。) |
![]() |
TrueForAll | 确定 List<T> 中的每个元素是否都与指定谓词定义的条件匹配。 (继承自 List<String>。) |
页首
显式 接口 实现
| 名称 | 描述 | |
|---|---|---|
![]() ![]() |
IList.Add | 将某项添加到 IList 中。 (继承自 List<String>。) |
![]() ![]() |
IList.Contains | 确定 IList 是否包含特定值。 (继承自 List<String>。) |
![]() ![]() |
ICollection.CopyTo | 从特定的 ICollection 索引处开始,将 Array 的元素复制到一个 Array 中。 (继承自 List<String>。) |
![]() ![]() |
IEnumerable<T>.GetEnumerator | 返回循环访问集合的枚举数。 (继承自 List<String>。) |
![]() ![]() |
IEnumerable.GetEnumerator | 返回循环访问集合的枚举数。 (继承自 List<String>。) |
![]() ![]() |
IList.IndexOf | 确定 IList 中特定项的索引。 (继承自 List<String>。) |
![]() ![]() |
IList.Insert | 在 IList 中的指定索引处插入一个项。 (继承自 List<String>。) |
![]() ![]() |
IList.IsFixedSize | 获取一个值,该值指示 IList 是否具有固定大小。 (继承自 List<String>。) |
![]() ![]() |
ICollection<T>.IsReadOnly | 获取一个值,该值指示 ICollection<T> 是否为只读。 (继承自 List<String>。) |
![]() ![]() |
IList.IsReadOnly | 获取一个值,该值指示 IList 是否为只读。 (继承自 List<String>。) |
![]() ![]() |
ICollection.IsSynchronized | 获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。 (继承自 List<String>。) |
![]() ![]() |
IList.Item | 获取或设置指定索引处的元素。 (继承自 List<String>。) |
![]() ![]() |
IList.Remove | 从 IList 中移除特定对象的第一个匹配项。 (继承自 List<String>。) |
![]() ![]() |
ICollection.SyncRoot | 获取可用于同步对 ICollection 的访问的对象。 (继承自 List<String>。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
.gif)
.jpeg)
.gif)
.gif)
.gif)
.gif)