Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Cmdlet::GetResourceString Method (String^, String^)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Gets a resource string that corresponds to the specified resource base key and identifier.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public:
virtual String^ GetResourceString(
	String^ baseName,
	String^ resourceId
)

Parameters

baseName
Type: System::String^

The base key of the resource to retrieve.

resourceId
Type: System::String^

The identifier of the resource to retrieve.

Return Value

Type: System::String^

The resource string that corresponds to the specified base key and identifier found in the current assembly (the assembly that contains the cmdlet class).

Exception Condition
PSArgumentException

The baseName parameter or the resourceId parameter is not valid, or a resource string was not found.

The behavior described here is the default behavior. This method should be overridden if a different behavior is required by the cmdlet.

For more information about cmdlets, see Windows PowerShell Cmdlets.

Return to top

Community Additions

Show: