Share via


XmlSerializationReader.CollapseWhitespace(String) 方法

定义

从指定字符串的开始位置和末尾移除所有空白字符。

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 System::String ^ CollapseWhitespace(System::String ^ value);
protected string? CollapseWhitespace (string? value);
protected string CollapseWhitespace (string value);
member this.CollapseWhitespace : string -> string
Protected Function CollapseWhitespace (value As String) As String

参数

value
String

将移除其空白的字符串。

返回

裁剪后的字符串。

注解

的受保护成员XmlSerializationReader仅供在 .NET Framework XML 序列化基础结构内部使用的派生类使用。

适用于