Freigeben über


SoapNonPositiveInteger Konstruktoren

Definition

Initialisiert eine neue Instanz der SoapNonPositiveInteger-Klasse.

Überlädt

SoapNonPositiveInteger()

Initialisiert eine neue Instanz der SoapNonPositiveInteger-Klasse.

SoapNonPositiveInteger(Decimal)

Initialisiert eine neue Instanz der SoapNonPositiveInteger-Klasse mit einem Decimal-Wert.

SoapNonPositiveInteger()

Initialisiert eine neue Instanz der SoapNonPositiveInteger-Klasse.

public:
 SoapNonPositiveInteger();
public SoapNonPositiveInteger ();
Public Sub New ()

Beispiele

Im folgenden Codebeispiel wird die Verwendung dieses Konstruktors veranschaulicht.

// 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());

Gilt für:

SoapNonPositiveInteger(Decimal)

Initialisiert eine neue Instanz der SoapNonPositiveInteger-Klasse mit einem Decimal-Wert.

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)

Parameter

value
Decimal

Ein Decimal-Wert zum Initialisieren der aktuellen Instanz.

Ausnahmen

value ist größer als 0 (null).

Beispiele

Im folgenden Codebeispiel wird die Verwendung dieses Konstruktors veranschaulicht.

// 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());

Gilt für: