AFValue.DefaultValue Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the default value for the specified type.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static Object DefaultValue( Type valueType )
Public Shared Function DefaultValue ( valueType As Type ) As Object Dim valueType As Type Dim returnValue As Object returnValue = AFValue.DefaultValue(valueType)
public: static Object^ DefaultValue( Type^ valueType )
static member DefaultValue : valueType : Type -> Object
Parameters
- valueType
- Type: SystemType
The type of the desired default value.
Return Value
Type: ObjectReturns the default value for the specified type.
Remarks
The default value for the specified valueType is
returned. If an array type is specified, then an array with one item
of the specified type is returned.