SoapNonNegativeInteger Costruttori

Definizione

Inizializza una nuova istanza della classe SoapNonNegativeInteger.

Overload

SoapNonNegativeInteger()

Inizializza una nuova istanza della classe SoapNonNegativeInteger.

SoapNonNegativeInteger(Decimal)

Inizializza una nuova istanza della classe SoapNonNegativeInteger con un valore Decimal.

SoapNonNegativeInteger()

Inizializza una nuova istanza della classe SoapNonNegativeInteger.

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

Esempio

Nell'esempio di codice seguente viene illustrato come usare questo costruttore.

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

Si applica a

SoapNonNegativeInteger(Decimal)

Inizializza una nuova istanza della classe SoapNonNegativeInteger con un valore Decimal.

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)

Parametri

value
Decimal

Valore Decimal per inizializzare l'istanza corrente.

Eccezioni

value è minore di 0.

Esempio

Nell'esempio di codice seguente viene illustrato come usare questo costruttore.

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

Si applica a