Share via


SoapNormalizedString.Value 属性

定义

获取或设置规范化的字符串。

public:
 property System::String ^ Value { System::String ^ get(); void set(System::String ^ value); };
public string Value { get; set; }
member this.Value : string with get, set
Public Property Value As String

属性值

一个 String 对象,包含正常化的字符串。

例外

value 包含无效字符(0xD、0xA 或 0x9)。

示例

下面的代码示例演示如何使用此属性。 此代码示例是为 SoapNormalizedString 类提供的一个更大示例的一部分。

// Print the value of the SoapNormalizedString object.
Console::WriteLine( L"The value of the SoapNormalizedString object is \"{0}\".",
   normalized->Value );
// Print the value of the SoapNormalizedString object.
Console.WriteLine(
    "The value of the SoapNormalizedString " +
    "object is \"{0}\".",
    normalized.Value);

适用于