SoapNormalizedString Constructors
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.
Initializes a new instance of the SoapNormalizedString class.
Overloads
SoapNormalizedString() |
Initializes a new instance of the SoapNormalizedString class. |
SoapNormalizedString(String) |
Initializes a new instance of the SoapNormalizedString class with a normalized string. |
SoapNormalizedString()
Initializes a new instance of the SoapNormalizedString class.
public:
SoapNormalizedString();
public SoapNormalizedString ();
Public Sub New ()
Examples
The following code example shows how to use this constructor.
// Create a SoapNormalizedString object.
SoapNormalizedString^ normalized = gcnew SoapNormalizedString;
normalized->Value = L"one two";
Console::WriteLine( L"The value of the SoapNormalizedString object is {0}.",
normalized );
// Create a SoapNormalizedString object.
SoapNormalizedString normalized = new SoapNormalizedString();
normalized.Value = "one two";
Console.WriteLine(
"The value of the SoapNormalizedString object is {0}.",
normalized.ToString());
Applies to
SoapNormalizedString(String)
Initializes a new instance of the SoapNormalizedString class with a normalized string.
public:
SoapNormalizedString(System::String ^ value);
public SoapNormalizedString (string value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNormalizedString : string -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNormalizedString
Public Sub New (value As String)
Parameters
Exceptions
value
contains invalid characters (0xD, 0xA, or 0x9).
Examples
The following code example shows how to use this constructor.
// Create a SoapNormalizedString object.
String^ testString = L"one two";
SoapNormalizedString^ normalized = gcnew SoapNormalizedString(
testString );
Console::WriteLine( L"The value of the SoapNormalizedString object is {0}.",
normalized );
// Create a SoapNormalizedString object.
string testString = "one two";
SoapNormalizedString normalized =
new SoapNormalizedString(testString);
Console.WriteLine(
"The value of the SoapNormalizedString object is {0}.",
normalized.ToString());
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for