AFTimeZone.FromName Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Gets a AFTimeZone which corresponds to the specified
time zone invariant culture name.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public static AFTimeZone FromName( string name )
Public Shared Function FromName ( name As String ) As AFTimeZone Dim name As String Dim returnValue As AFTimeZone returnValue = AFTimeZone.FromName(name)
public: static AFTimeZone^ FromName( String^ name )
static member FromName : name : string -> AFTimeZone
Parameters
- name
- Type: SystemString
The invariant culture name for the time zone to find.
Return Value
Type: AFTimeZoneReturns the corresponding AFTimeZone for the specified name. If the time zone is not found, is returned.
Remarks
The Name property can be used to obtain the time zone's
invariant culture name to be used as the name parameter
to this method.