AFValue.DefaultValue Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Gets the default value for the specified type.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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.