SoapNegativeInteger Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der SoapNegativeInteger-Klasse.
Überlädt
SoapNegativeInteger() |
Initialisiert eine neue Instanz der SoapNegativeInteger-Klasse. |
SoapNegativeInteger(Decimal) |
Initialisiert eine neue Instanz der SoapNegativeInteger-Klasse mit einem Decimal-Wert. |
SoapNegativeInteger()
Initialisiert eine neue Instanz der SoapNegativeInteger-Klasse.
public:
SoapNegativeInteger();
public SoapNegativeInteger ();
Public Sub New ()
Beispiele
Im folgenden Codebeispiel wird die Verwendung dieses Konstruktors veranschaulicht.
// 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());
Gilt für:
SoapNegativeInteger(Decimal)
Initialisiert eine neue Instanz der SoapNegativeInteger-Klasse mit einem Decimal-Wert.
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)
Parameter
Ausnahmen
value
ist größer als –1.
Beispiele
Im folgenden Codebeispiel wird die Verwendung dieses Konstruktors veranschaulicht.
// 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());