UserTrackingLocationCollection 构造函数

定义

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

重载

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.

UserTrackingLocationCollection()

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

public:
 UserTrackingLocationCollection();
public UserTrackingLocationCollection ();
Public Sub New ()

注解

无参数构造函数将UserTrackingLocationCollection初始化为空列表。The parameterless constructor initializes the UserTrackingLocationCollection to an empty list.

UserTrackingLocationCollection(IEnumerable<UserTrackingLocation>)

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

public:
 UserTrackingLocationCollection(System::Collections::Generic::IEnumerable<System::Workflow::Runtime::Tracking::UserTrackingLocation ^> ^ locations);
public UserTrackingLocationCollection (System.Collections.Generic.IEnumerable<System.Workflow.Runtime.Tracking.UserTrackingLocation> locations);
new System.Workflow.Runtime.Tracking.UserTrackingLocationCollection : seq<System.Workflow.Runtime.Tracking.UserTrackingLocation> -> System.Workflow.Runtime.Tracking.UserTrackingLocationCollection
Public Sub New (locations As IEnumerable(Of UserTrackingLocation))

参数

例外

locations 为空引用(在 Visual Basic 中为 Nothing)。locations is a null reference (Nothing in Visual Basic).

注解

UserTrackingLocationCollection 在初始化后将包含 UserTrackingLocation 中指定的 locations 对象。The UserTrackingLocationCollection is initialized to contain the UserTrackingLocation objects specified in locations.

适用于