共用方式為


Resources.GetString 方法 (String, Object[])

傳回指定的String資源的值。

命名空間:  Microsoft.SharePoint.Client
組件:   Microsoft.SharePoint.Client.Silverlight.Runtime (在 Microsoft.SharePoint.Client.Silverlight.Runtime.dll 中);  Microsoft.SharePoint.Client.Phone.Runtime (在 Microsoft.SharePoint.Client.Phone.Runtime.dll 中)  Microsoft.SharePoint.Client.Runtime (在 Microsoft.SharePoint.Client.Runtime.dll 中)

語法

'宣告
Public Shared Function GetString ( _
    resourceId As String, _
    ParamArray args As Object() _
) As String
'用途
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
)

參數

  • args
    類型:[]

    物件陣列,其中包含零個或多個來格式化要擷取的字串資源的物件。

傳回值

類型:System.String
String .

備註

這個方法將格式中的項目指定的String資源取代字串,代表指定陣列中對應的物件。

請參閱

參照

Resources 類別

Resources 成員

GetString 多載

Microsoft.SharePoint.Client 命名空間