Cmdlet.GetResourceString Method

Definition

Gets the resource string corresponding to baseName and resourceId from the current assembly. You should override this if you require a different behavior.

public virtual string GetResourceString (string baseName, string resourceId);
Parameters
baseName
String

the base resource name

resourceId
String

the resource id

Returns

the resource string corresponding to baseName and resourceId

Exceptions

Invalid baseName or resourceId, or string not found in resources

Remarks

This behavior may be used when the Cmdlet specifies HelpMessageBaseName and HelpMessageResourceId when defining ParameterAttribute, or when it uses the ErrorDetails constructor variants which take baseName and resourceId.