UserTrackingLocationCollection 类

定义

警告

此 API 现已过时。

包含 UserTrackingLocation 对象的集合。Contains a collection of UserTrackingLocation objects.

public ref class UserTrackingLocationCollection : System::Collections::Generic::List<System::Workflow::Runtime::Tracking::UserTrackingLocation ^>
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
[System.Serializable]
public class UserTrackingLocationCollection : System.Collections.Generic.List<System.Workflow.Runtime.Tracking.UserTrackingLocation>
type UserTrackingLocationCollection = class
    inherit List<UserTrackingLocation>
Public Class UserTrackingLocationCollection
Inherits List(Of UserTrackingLocation)
继承
UserTrackingLocationCollection
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

UserTrackPoint 保留两个 UserTrackingLocationCollection 对象:MatchingLocations 指定用于匹配活动状态事件的参数,ExcludedLocations 指定用于从匹配中排除活动状态事件的参数。A UserTrackPoint maintains two UserTrackingLocationCollection objects: MatchingLocations specifies parameters used for matching activity status events and ExcludedLocations specifies parameters used to exclude activity status events from matching.

构造函数

UserTrackingLocationCollection()

初始化 UserTrackingLocationCollection 类的新实例。Initializes a new instance of the UserTrackingLocationCollection class.

UserTrackingLocationCollection(IEnumerable<UserTrackingLocation>)

使用用户位置的列表初始化 UserTrackingLocationCollection 类的新实例。Initializes a new instance of the UserTrackingLocationCollection class by using a list of user locations.

属性

Capacity

获取或设置该内部数据结构在不调整大小的情况下能够容纳的元素总数。Gets or sets the total number of elements the internal data structure can hold without resizing.

(继承自 List<T>)
Count

获取 List<T> 中包含的元素数。Gets the number of elements contained in the List<T>.

(继承自 List<T>)
Item[Int32]

获取或设置指定索引处的元素。Gets or sets the element at the specified index.

(继承自 List<T>)

方法

Add(T)

将一个对象添加到 List<T> 的末尾。Adds an object to the end of the List<T>.

(继承自 List<T>)
AddRange(IEnumerable<T>)

将指定集合的元素添加到 List<T> 的末尾。Adds the elements of the specified collection to the end of the List<T>.

(继承自 List<T>)
AsReadOnly()

返回当前集合的只读 ReadOnlyCollection<T> 包装器。Returns a read-only ReadOnlyCollection<T> wrapper for the current collection.

(继承自 List<T>)
BinarySearch(Int32, Int32, T, IComparer<T>)

使用指定的比较器在已排序 List<T> 的某个元素范围中搜索元素,并返回该元素从零开始的索引。Searches a range of elements in the sorted List<T> for an element using the specified comparer and returns the zero-based index of the element.

(继承自 List<T>)
BinarySearch(T)

使用默认的比较器在整个已排序的 List<T> 中搜索元素,并返回该元素从零开始的索引。Searches the entire sorted List<T> for an element using the default comparer and returns the zero-based index of the element.

(继承自 List<T>)
BinarySearch(T, IComparer<T>)

使用指定的比较器在整个已排序的 List<T> 中搜索元素,并返回该元素从零开始的索引。Searches the entire sorted List<T> for an element using the specified comparer and returns the zero-based index of the element.

(继承自 List<T>)
Clear()

List<T> 中删除所有元素。Removes all elements from the List<T>.

(继承自 List<T>)
Contains(T)

确定某元素是否在 List<T> 中。Determines whether an element is in the List<T>.

(继承自 List<T>)
ConvertAll<TOutput>(Converter<T,TOutput>)

将当前 List<T> 中的元素转换为另一种类型,并返回包含已转换元素的列表。Converts the elements in the current List<T> to another type, and returns a list containing the converted elements.

(继承自 List<T>)
CopyTo(Int32, T[], Int32, Int32)

从目标数组的指定索引处开始,将元素的范围从 List<T> 复制到兼容的一维数组。Copies a range of elements from the List<T> to a compatible one-dimensional array, starting at the specified index of the target array.

(继承自 List<T>)
CopyTo(T[])

从目标数组的开头开始,将整个 List<T> 复制到兼容的一维数组。Copies the entire List<T> to a compatible one-dimensional array, starting at the beginning of the target array.

(继承自 List<T>)
CopyTo(T[], Int32)

从目标数组的指定索引处开始,将整个 List<T> 复制到兼容的一维数组。Copies the entire List<T> to a compatible one-dimensional array, starting at the specified index of the target array.

(继承自 List<T>)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Exists(Predicate<T>)

确定 List<T> 是否包含与指定谓词定义的条件匹配的元素。Determines whether the List<T> contains elements that match the conditions defined by the specified predicate.

(继承自 List<T>)
Find(Predicate<T>)

搜索与指定谓词所定义的条件相匹配的元素,并返回整个 List<T> 中的第一个匹配元素。Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire List<T>.

(继承自 List<T>)
FindAll(Predicate<T>)

检索与指定谓词定义的条件匹配的所有元素。Retrieves all the elements that match the conditions defined by the specified predicate.

(继承自 List<T>)
FindIndex(Int32, Int32, Predicate<T>)

搜索与指定谓词所定义的条件相匹配的一个元素,并返回 List<T> 中从指定的索引开始、包含指定元素个数的元素范围内第一个匹配项的从零开始的索引。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the List<T> that starts at the specified index and contains the specified number of elements.

(继承自 List<T>)
FindIndex(Int32, Predicate<T>)

搜索与指定谓词所定义的条件相匹配的元素,并返回 List<T> 中从指定索引到最后一个元素的元素范围内第一个匹配项的从零开始的索引。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the List<T> that extends from the specified index to the last element.

(继承自 List<T>)
FindIndex(Predicate<T>)

搜索与指定谓词所定义的条件相匹配的元素,并返回整个 List<T> 中第一个匹配元素的从零开始的索引。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire List<T>.

(继承自 List<T>)
FindLast(Predicate<T>)

搜索与指定谓词所定义的条件相匹配的元素,并返回整个 List<T> 中的最后一个匹配元素。Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire List<T>.

(继承自 List<T>)
FindLastIndex(Int32, Int32, Predicate<T>)

搜索与指定谓词所定义的条件相匹配的元素,并返回 List<T> 中包含指定元素个数、到指定索引结束的元素范围内最后一个匹配项的从零开始的索引。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the List<T> that contains the specified number of elements and ends at the specified index.

(继承自 List<T>)
FindLastIndex(Int32, Predicate<T>)

搜索与由指定谓词定义的条件相匹配的元素,并返回 List<T> 中从第一个元素到指定索引的元素范围内最后一个匹配项的从零开始的索引。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the List<T> that extends from the first element to the specified index.

(继承自 List<T>)
FindLastIndex(Predicate<T>)

搜索与指定谓词所定义的条件相匹配的元素,并返回整个 List<T> 中最后一个匹配元素的从零开始的索引。Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire List<T>.

(继承自 List<T>)
ForEach(Action<T>)

List<T> 的每个元素执行指定操作。Performs the specified action on each element of the List<T>.

(继承自 List<T>)
GetEnumerator()

返回遍历 List<T> 的枚举器。Returns an enumerator that iterates through the List<T>.

(继承自 List<T>)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetRange(Int32, Int32)

在源 List<T> 中创建元素范围的浅表复制。Creates a shallow copy of a range of elements in the source List<T>.

(继承自 List<T>)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IndexOf(T)

搜索指定的对象,并返回整个 List<T> 中第一个匹配项的从零开始的索引。Searches for the specified object and returns the zero-based index of the first occurrence within the entire List<T>.

(继承自 List<T>)
IndexOf(T, Int32)

搜索指定对象并返回 List<T> 中从指定索引到最后一个元素这部分元素中第一个匹配项的从零开始索引。Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the List<T> that extends from the specified index to the last element.

(继承自 List<T>)
IndexOf(T, Int32, Int32)

搜索指定对象并返回 List<T> 中从指定索引开始并包含指定元素数的这部分元素中第一个匹配项的从零开始索引。Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the List<T> that starts at the specified index and contains the specified number of elements.

(继承自 List<T>)
Insert(Int32, T)

将元素插入到 List<T> 中的指定索引处。Inserts an element into the List<T> at the specified index.

(继承自 List<T>)
InsertRange(Int32, IEnumerable<T>)

将集合中的元素插入 List<T> 的指定索引处。Inserts the elements of a collection into the List<T> at the specified index.

(继承自 List<T>)
LastIndexOf(T)

搜索指定对象并返回整个 List<T> 中最后一个匹配项的从零开始索引。Searches for the specified object and returns the zero-based index of the last occurrence within the entire List<T>.

(继承自 List<T>)
LastIndexOf(T, Int32)

搜索指定对象并返回 List<T> 中从第一个元素到指定索引这部分元素中最后一个匹配项的从零开始的索引。Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the List<T> that extends from the first element to the specified index.

(继承自 List<T>)
LastIndexOf(T, Int32, Int32)

搜索指定对象并返回 List<T> 中到指定索引为止包含指定元素数的这部分元素中最后一个匹配项的从零开始索引。Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the List<T> that contains the specified number of elements and ends at the specified index.

(继承自 List<T>)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Remove(T)

List<T> 中删除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the List<T>.

(继承自 List<T>)
RemoveAll(Predicate<T>)

移除与指定的谓词所定义的条件相匹配的所有元素。Removes all the elements that match the conditions defined by the specified predicate.

(继承自 List<T>)
RemoveAt(Int32)

移除 List<T> 的指定索引处的元素。Removes the element at the specified index of the List<T>.

(继承自 List<T>)
RemoveRange(Int32, Int32)

List<T> 中移除一系列元素。Removes a range of elements from the List<T>.

(继承自 List<T>)
Reverse()

将整个 List<T> 中元素的顺序反转。Reverses the order of the elements in the entire List<T>.

(继承自 List<T>)
Reverse(Int32, Int32)

将指定范围中元素的顺序反转。Reverses the order of the elements in the specified range.

(继承自 List<T>)
Sort()

使用默认比较器对整个 List<T> 中的元素进行排序。Sorts the elements in the entire List<T> using the default comparer.

(继承自 List<T>)
Sort(Comparison<T>)

使用指定的 List<T>,对整个 Comparison<T> 中的元素进行排序。Sorts the elements in the entire List<T> using the specified Comparison<T>.

(继承自 List<T>)
Sort(IComparer<T>)

使用指定的比较器对整个 List<T> 中的元素进行排序。Sorts the elements in the entire List<T> using the specified comparer.

(继承自 List<T>)
Sort(Int32, Int32, IComparer<T>)

使用指定的比较器对 List<T> 中某个范围内的元素进行排序。Sorts the elements in a range of elements in List<T> using the specified comparer.

(继承自 List<T>)
ToArray()

List<T> 的元素复制到新数组中。Copies the elements of the List<T> to a new array.

(继承自 List<T>)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
TrimExcess()

将容量设置为 List<T> 中元素的实际数目(如果该数目小于某个阈值)。Sets the capacity to the actual number of elements in the List<T>, if that number is less than a threshold value.

(继承自 List<T>)
TrueForAll(Predicate<T>)

确定 List<T> 中的每个元素是否都与指定谓词定义的条件匹配。Determines whether every element in the List<T> matches the conditions defined by the specified predicate.

(继承自 List<T>)

显式接口实现

ICollection.CopyTo(Array, Int32)

从特定的 ICollection 索引开始,将 Array 的元素复制到一个 Array 中。Copies the elements of the ICollection to an Array, starting at a particular Array index.

(继承自 List<T>)
ICollection.IsSynchronized

获取一个值,该值指示是否同步对 ICollection 的访问(确保线程安全)。Gets a value indicating whether access to the ICollection is synchronized (thread safe).

(继承自 List<T>)
ICollection.SyncRoot

获取用于同步对 ICollection 的访问的对象。Gets an object that can be used to synchronize access to the ICollection.

(继承自 List<T>)
ICollection<T>.IsReadOnly

获取一个值,该值指示 ICollection<T> 是否为只读。Gets a value indicating whether the ICollection<T> is read-only.

(继承自 List<T>)
IEnumerable.GetEnumerator()

返回循环访问集合的枚举器。Returns an enumerator that iterates through a collection.

(继承自 List<T>)
IEnumerable<T>.GetEnumerator()

返回循环访问集合的枚举器。Returns an enumerator that iterates through a collection.

(继承自 List<T>)
IList.Add(Object)

将项添加到 IList 中。Adds an item to the IList.

(继承自 List<T>)
IList.Contains(Object)

确定 IList 是否包含特定值。Determines whether the IList contains a specific value.

(继承自 List<T>)
IList.IndexOf(Object)

确定 IList 中特定项的索引。Determines the index of a specific item in the IList.

(继承自 List<T>)
IList.Insert(Int32, Object)

将项插入到 IList 中的指定索引处。Inserts an item to the IList at the specified index.

(继承自 List<T>)
IList.IsFixedSize

获取一个值,该值指示 IList 是否具有固定大小。Gets a value indicating whether the IList has a fixed size.

(继承自 List<T>)
IList.IsReadOnly

获取一个值,该值指示 IList 是否为只读。Gets a value indicating whether the IList is read-only.

(继承自 List<T>)
IList.Item[Int32]

获取或设置指定索引处的元素。Gets or sets the element at the specified index.

(继承自 List<T>)
IList.Remove(Object)

IList 中删除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the IList.

(继承自 List<T>)

扩展方法

CopyToDataTable<T>(IEnumerable<T>)

在给定其泛型参数 DataTableDataRow 的输入 IEnumerable<T> 对象的情况下,返回包含 T 对象副本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

在给定其泛型参数 DataRowDataTable 的输入 IEnumerable<T> 对象的情况下,将 T 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

在给定其泛型参数 DataRowDataTable 的输入 IEnumerable<T> 对象的情况下,将 T 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个节点的上级。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个节点的上级。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子代节点的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

返回源集合中每个元素和文档的子元素的集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

返回源集合中经过筛选的每个元素和文档的子元素集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

返回节点集合(其中包含源集合中的所有节点),并按文档顺序排列。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子节点集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

将源集合中的每个节点从其父节点中移除。Removes every node in the source collection from its parent node.

适用于