Partager via


SoapNonNegativeInteger Constructeurs

Définition

Initialise une nouvelle instance de la classe SoapNonNegativeInteger.

Surcharges

SoapNonNegativeInteger()

Initialise une nouvelle instance de la classe SoapNonNegativeInteger.

SoapNonNegativeInteger(Decimal)

Initialise une nouvelle instance de la classe SoapNonNegativeInteger avec une valeur Decimal.

SoapNonNegativeInteger()

Initialise une nouvelle instance de la classe SoapNonNegativeInteger.

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

Exemples

L’exemple de code suivant montre comment utiliser ce constructeur.

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

S’applique à

SoapNonNegativeInteger(Decimal)

Initialise une nouvelle instance de la classe SoapNonNegativeInteger avec une valeur 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)

Paramètres

value
Decimal

Valeur Decimal pour initialiser l'instance actuelle.

Exceptions

value est inférieur à 0.

Exemples

L’exemple de code suivant montre comment utiliser ce constructeur.

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

S’applique à