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