Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
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.

CmdletProvider.GetResourceString Method

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


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

'Usage
Dim instance As CmdletProvider
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 be retrieved.

resourceId

The identifier of the resource to be retrieved.

Return Value

The resource string that corresponds to the specified base key and identifier found in the assembly that contains the provider class.

Exception typeCondition
PSArgumentException

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

This method should be overridden if a different behavior is required by the provider.

For more information about providers, see Windows PowerShell Providers.


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


Show:
© 2015 Microsoft