AFValue.ToPIValue Method (Object)
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Note: This API is now obsolete.
This method sets the value of the passed in PISDK.PIValue object to the
value of this AFValue object.
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 void ToPIValue( Object piValue )
<ObsoleteAttribute("This property returns a PI SDK COM object which may not be available on all platforms.")> Public Sub ToPIValue ( piValue As Object ) Dim instance As AFValue Dim piValue As Object instance.ToPIValue(piValue)
public: [ObsoleteAttribute(L"This property returns a PI SDK COM object which may not be available on all platforms.")] void ToPIValue( Object^ piValue )
[<ObsoleteAttribute("This property returns a PI SDK COM object which may not be available on all platforms.")>] member ToPIValue : piValue : Object -> unit
Parameters
- piValue
- Type: SystemObject
Previously created object to be used to receive the value of this AFValue object.
Remarks
This method should be called when the PISDK.PIValue has already been
created by the client application. This method is faster than
ToPIValue method because it eliminates the need to construct
a new PISDK.PIValue.
| 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.4Obsolete (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