StringType.MidStmtStr(String, Int32, Int32, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用 sDest
参数的内容覆盖 sInsert
参数。
此 API 支持产品基础结构,不能在代码中直接使用。
public:
static void MidStmtStr(System::String ^ % sDest, int StartPosition, int MaxInsertLength, System::String ^ sInsert);
public static void MidStmtStr (ref string? sDest, int StartPosition, int MaxInsertLength, string sInsert);
public static void MidStmtStr (ref string sDest, int StartPosition, int MaxInsertLength, string sInsert);
static member MidStmtStr : string * int * int * string -> unit
Public Shared Sub MidStmtStr (ByRef sDest As String, StartPosition As Integer, MaxInsertLength As Integer, sInsert As String)
Public Sub MidStmtStr (ByRef sDest As String, StartPosition As Integer, MaxInsertLength As Integer, sInsert As String)
参数
- sDest
- String
必需。 要修改的字符串变量。
- StartPosition
- Int32
必需。 要在 sDest
参数中进行覆盖的起始位置。 索引从 1 开始。
- MaxInsertLength
- Int32
必需。 要从 sInsert
参数中使用的最大字符数(从第一个字符开始算起)。
- sInsert
- String
必需。 用于覆盖 sDest
参数的字符串值。
注解
此类支持 Visual Basic 编译器,不应直接从代码使用。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈