Bewerken

Share via


Utils.GetResourceString(String, String[]) Method

Definition

Retrieves and formats a localized resource string or error message.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static System::String ^ GetResourceString(System::String ^ ResourceKey, ... cli::array <System::String ^> ^ Args);
public static string GetResourceString (string ResourceKey, params string?[] Args);
public static string GetResourceString (string ResourceKey, params string[] Args);
static member GetResourceString : string * string[] -> string
Public Shared Function GetResourceString (ResourceKey As String, ParamArray Args As String()) As String

Parameters

ResourceKey
String

The identifier of the string or error message to retrieve.

Args
String[]

An array of parameters to replace placeholders in the string or error message.

Returns

A formatted resource string or error message.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

Applies to