AFTimeRule.ErrorToLocalizedString Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Translates error code to a localized string.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public virtual string ErrorToLocalizedString( int errorCode, CultureInfo info, params string[] args )
Public Overridable Function ErrorToLocalizedString ( errorCode As Integer, info As CultureInfo, ParamArray args As String() ) As String Dim instance As AFTimeRule Dim errorCode As Integer Dim info As CultureInfo Dim args As String() Dim returnValue As String returnValue = instance.ErrorToLocalizedString(errorCode, info, args)
public: virtual String^ ErrorToLocalizedString( int errorCode, CultureInfo^ info, ... array<String^>^ args )
abstract ErrorToLocalizedString : errorCode : int * info : CultureInfo * args : string[] -> string override ErrorToLocalizedString : errorCode : int * info : CultureInfo * args : string[] -> string
Parameters
- errorCode
- Type: SystemInt32
Error code to be translated. - info
- Type: System.GlobalizationCultureInfo
Culture information used to translate the error code. - args
- Type: SystemString
Parameters for error message string format.
Return Value
Type: StringReturns a localized string for the specified error code.
Remarks
When overridden, this method should return a localized string for the derived class error.