Compartir a través de


Resources.GetString Method (String, Object )

Returns the value of the specified String resource.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll);  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Shared Function GetString ( _
    resourceId As String, _
    ParamArray args As Object() _
) As String
'Usage
Dim resourceId As String
Dim args As Object()
Dim returnValue As String

returnValue = Resources.GetString(resourceId, _
    args)
public static string GetString(
    string resourceId,
    params Object[] args
)

Parameters

  • resourceId
    Type: System.String

    The String object that represents the name of the resource to retrieve.

  • args
    Type: []

    An object array that contains zero or more objects that are used to format the string resource to retrieve.

Return Value

Type: System.String
String .

Remarks

This method replaces the format item in the specified String resource with the string that represents the corresponding object in the specified array.

See Also

Reference

Resources Class

Resources Members

GetString Overload

Microsoft.SharePoint.Client Namespace