Udostępnij za pośrednictwem


IResourceSupplier.GetResourceString(String, String) Method

Definition

Gets the error message template string corresponding to baseName and resourceId.

public:
 System::String ^ GetResourceString(System::String ^ baseName, System::String ^ resourceId);
public:
 Platform::String ^ GetResourceString(Platform::String ^ baseName, Platform::String ^ resourceId);
std::wstring GetResourceString(std::wstring const & baseName, std::wstring const & resourceId);
public string GetResourceString (string baseName, string resourceId);
abstract member GetResourceString : string * string -> string
Public Function GetResourceString (baseName As String, resourceId As String) As String

Parameters

baseName
String

The base resource name.

resourceId
String

The resource id.

Returns

The error message template string corresponding to baseName and resourceId.

Remarks

If the desired behavior is simple string lookup in your assembly, you can use the ErrorDetails(Assembly, String, String, Object[]) constructor instead and not bother implementing IResourceSupplier. Consider implementing IResourceSupplier if you want more complex behavior.

Insertions will be inserted into the string with Format(IFormatProvider, String, Object[]) to generate the final error message in Message.

Applies to