Cmdlet.GetResourceString(String, String) 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.

C++
public:
 virtual System::String ^ GetResourceString(System::String ^ baseName, System::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.

Applies to

Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

See also