SoapNegativeInteger Costruttori

Definizione

Inizializza una nuova istanza della classe SoapNegativeInteger.

Overload

SoapNegativeInteger()

Inizializza una nuova istanza della classe SoapNegativeInteger.

SoapNegativeInteger(Decimal)

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

SoapNegativeInteger()

Inizializza una nuova istanza della classe SoapNegativeInteger.

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

Esempio

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

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

Si applica a

SoapNegativeInteger(Decimal)

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

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)

Parametri

value
Decimal

Valore Decimal per inizializzare l'istanza corrente.

Eccezioni

value è maggiore di -1.

Esempio

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

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

Si applica a