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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈