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