SoapNonNegativeInteger 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 SoapNonNegativeInteger class.
Overloads
SoapNonNegativeInteger() |
Initializes a new instance of the SoapNonNegativeInteger class. |
SoapNonNegativeInteger(Decimal) |
Initializes a new instance of the SoapNonNegativeInteger class with a Decimal value. |
SoapNonNegativeInteger()
Initializes a new instance of the SoapNonNegativeInteger class.
public:
SoapNonNegativeInteger();
public SoapNonNegativeInteger ();
Public Sub New ()
Examples
The following code example shows how to use this constructor.
// Create a SoapNonNegativeInteger object.
SoapNonNegativeInteger^ xsdInteger = gcnew SoapNonNegativeInteger;
xsdInteger->Value = +14;
Console::WriteLine( L"The value of the SoapNonNegativeInteger object is {0}.", xsdInteger );
// Create a SoapNonNegativeInteger object.
SoapNonNegativeInteger xsdInteger =
new SoapNonNegativeInteger();
xsdInteger.Value = +14;
Console.WriteLine(
"The value of the SoapNonNegativeInteger object is {0}.",
xsdInteger.ToString());
Applies to
SoapNonNegativeInteger(Decimal)
Initializes a new instance of the SoapNonNegativeInteger class with a Decimal value.
public:
SoapNonNegativeInteger(System::Decimal value);
public SoapNonNegativeInteger (decimal value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonNegativeInteger : decimal -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonNegativeInteger
Public Sub New (value As Decimal)
Parameters
Exceptions
value
is less than 0.
Examples
The following code example shows how to use this constructor.
// Create a SoapNonNegativeInteger object.
Decimal decimalValue = +14;
SoapNonNegativeInteger^ xsdInteger = gcnew SoapNonNegativeInteger( decimalValue );
Console::WriteLine( L"The value of the SoapNonNegativeInteger object is {0}.", xsdInteger );
// Create a SoapNonNegativeInteger object.
decimal decimalValue = +14;
SoapNonNegativeInteger xsdInteger =
new SoapNonNegativeInteger(decimalValue);
Console.WriteLine(
"The value of the SoapNonNegativeInteger object is {0}.",
xsdInteger.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