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

AF SDK Reference

AFValue.DefaultValue Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFValue.DefaultValue Method
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: Object
Returns 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.

Version Information

AFSDK


See Also

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