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

AF SDK Reference

AFTimeRule.ErrorToLocalizedString Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeRule.ErrorToLocalizedString Method
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: String
Returns a localized string for the specified error code.

Remarks

When overridden, this method should return a localized string for the derived class error.

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, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

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