編集

次の方法で共有


XsltFunctions.Translate(String, String, String) Method

Definition

Implements translate XPath function according to the W3C specification.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static System::String ^ Translate(System::String ^ arg, System::String ^ mapString, System::String ^ transString);
public static string Translate (string arg, string mapString, string transString);
static member Translate : string * string * string -> string
Public Shared Function Translate (arg As String, mapString As String, transString As String) As String

Parameters

arg
String

The original string.

mapString
String

The substring in arg that should be replaced with transString.

transString
String

The string to replace mapString with.

Returns

The translated value as String.

Remarks

Converts a string (arg) by replacing the characters in a substring (mapString) with the characters in another string (tranString).

Applies to