IResourceSupplier.GetResourceString Method

Definition

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

public string GetResourceString (string baseName, string resourceId);
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 System.Management.Automation.ErrorDetails. constructor instead and not bother implementing IResourceSupplier. Consider implementing IResourceSupplier if you want more complex behavior.

        Insertions will be inserted into the string with
        <xref href="System.String.Format(System.IFormatProvider,System.String,System.Object[])"></xref>
        to generate the final error message in
        <xref href="System.Management.Automation.ErrorDetails.Message"></xref>.