Cmdlet.GetResourceString Method

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)

'Usage
Dim instance As Cmdlet
Dim baseName As String
Dim resourceId As String
Dim returnValue As String

returnValue = instance.GetResourceString(baseName, resourceId)

public virtual string GetResourceString (
	string baseName,
	string resourceId
)
public String GetResourceString (
	String baseName, 
	String resourceId
)
public function GetResourceString (
	baseName : String, 
	resourceId : String
) : String

Parameters

baseName

The base key of the resource to retrieve.

resourceId

The identifier of the resource to retrieve.

Return Value

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 typeCondition
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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft