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

AF SDK Reference

IAFLocalizedErrorProvider.GetLocalizedError Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
IAFLocalizedErrorProvider.GetLocalizedError Method
Returns localized string for given error code and context.

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

Syntax

string GetLocalizedError(
	IFormatProvider formatProvider,
	int errorCode,
	bool isSdkError,
	params Object[] args
)
Function GetLocalizedError ( 
	formatProvider As IFormatProvider,
	errorCode As Integer,
	isSdkError As Boolean,
	ParamArray args As Object()
) As String

Dim instance As IAFLocalizedErrorProvider
Dim formatProvider As IFormatProvider
Dim errorCode As Integer
Dim isSdkError As Boolean
Dim args As Object()
Dim returnValue As String

returnValue = instance.GetLocalizedError(formatProvider, 
	errorCode, isSdkError, args)
String^ GetLocalizedError(
	IFormatProvider^ formatProvider, 
	int errorCode, 
	bool isSdkError, 
	... array<Object^>^ args
)
abstract GetLocalizedError : 
        formatProvider : IFormatProvider * 
        errorCode : int * 
        isSdkError : bool * 
        args : Object[] -> string 

Parameters

formatProvider
Type: SystemIFormatProvider
The format provider used to generate the localized error message.
errorCode
Type: SystemInt32
Error code to be translated.
isSdkError
Type: SystemBoolean
Specifies if the error originated in the SDK.
args
Type: SystemObject
Parameters for error message string format.

Return Value

Type: String
Returns a localized string for the specified error code.

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
TitleResults for “How to create a CRG?”Also Available in