Click or drag to resize
OSIsoft, LLC

PIPointFindPIPointsAsync Method (PIServer, IEnumerableInt32, IEnumerableString, CancellationToken)

Finds a list of PIPoint objects from the specified point ids.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.6.195
Syntax
public static Task<IList<PIPoint>> FindPIPointsAsync(
	PIServer piServer,
	IEnumerable<int> ids,
	IEnumerable<string> attributeNames = null,
	CancellationToken cancellationToken = null
)

Parameters

piServer
Type: OSIsoft.AF.PIPIServer
The PIServer to search for the desired PIPoint objects.
ids
Type: System.Collections.GenericIEnumerableInt32
The point ids of the desired PIPoint objects to search for.
attributeNames (Optional)
Type: System.Collections.GenericIEnumerableString
The PIPoint attribute names to be loaded from the server as the PIPoint objects are found. The GetAttribute(String) method can be used to access the loaded attribute values. If , then no attribute values are loaded for the returned PIPoints.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
A cancellation token used to abort processing before completion. Passing the default CancellationToken.None will run to completion or until the PIConnectionInfo.OperationTimeOut period elapses.

Return Value

Type: TaskIListPIPoint
Returns a task whose result is the list of PIPoint objects matching the specified ids.
Exceptions
ExceptionCondition
AggregateException Asynchronous methods throw AggregateException on failure which will contain one or more exceptions containing the failure.
Remarks
This method finds a list of PIPoint objects from the specified point ids.

Note Notes to Callers
This call might use a background task to complete some of its work. See the Threading Overview for some matters to consider when execution transitions to another thread.

Version Information

AFSDK

Supported in: 2.10.5, 2.10
See Also
Enabling Operational Intelligence