Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFValues.ToPIValues Method

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFValues.ToPIValues Method

Note: This API is now obsolete.

This method returns the values of this collection as a new collection of PISDK.PIValue objects.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

[ObsoleteAttribute("This property returns a PI SDK COM object which may not be available on all platforms.")]
public Object ToPIValues()
<ObsoleteAttribute("This property returns a PI SDK COM object which may not be available on all platforms.")>
Public Function ToPIValues As Object

Dim instance As AFValues
Dim returnValue As Object

returnValue = instance.ToPIValues()
public:
[ObsoleteAttribute(L"This property returns a PI SDK COM object which may not be available on all platforms.")]
Object^ ToPIValues()
[<ObsoleteAttribute("This property returns a PI SDK COM object which may not be available on all platforms.")>]
member ToPIValues : unit -> Object 

Return Value

Type: Object
Returns the values of this collection as a new collection of PISDK.PIValue objects.

Remarks

Each time this method is called, a new PISDK.PIValues collection is created. This method can be used to convert a collection of AFValue objects to a collection of PISDK.PIValue objects. The method returns a PI SDK COM object. PI SDK may not be available on all platforms. If PI SDK is not installed, this routine will return .

Note Notes to Callers
This method, property, or class is not available in the .NET 8 version of the SDK.

Version Information

AFSDK

Supported in: 2.6, 2.5, 2.4
Obsolete (compiler warning) in 3.1.1
Obsolete (compiler warning) in 3.1.0
Obsolete (compiler warning) in 3.0.2
Obsolete (compiler warning) in 3.0.1
Obsolete (compiler warning) in 3.0.0
Obsolete (compiler warning) in 2.10.11
Obsolete (compiler warning) in 2.10.5
Obsolete (compiler warning) in 2.10.0
Obsolete (compiler warning) in 2.10
Obsolete (compiler warning) in 2.9.5
Obsolete (compiler warning) in 2.9
Obsolete (compiler warning) in 2.8.5
Obsolete (compiler warning) in 2.8
Obsolete (compiler warning) in 2.7.5
Obsolete (compiler warning) in 2.7

See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in