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

AF SDK Reference

AFAdmin.GetVersion Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAdmin.GetVersion Method
Converts the string representing a version to a Version object.

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

Syntax

public static Version GetVersion(
	string version
)
Public Shared Function GetVersion ( 
	version As String
) As Version

Dim version As String
Dim returnValue As Version

returnValue = AFAdmin.GetVersion(version)
public:
static Version^ GetVersion(
	String^ version
)
static member GetVersion : 
        version : string -> Version 

Parameters

version
Type: SystemString
The string representing a version to be converted.

Return Value

Type: Version
If the conversion succeeds, returns the Version equivalent of the number that is contained in the version parameter. When the conversion fails, is returned.

Remarks

Attempts to convert the string representation of a version number to an equivalent Version object. The first part of the version string must be in a format that can be parsed by TryParse(String, Version) with a space separating an optional version label after the version number.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5

See Also

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