XsltFunctions.Translate(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應