SoapNonNegativeInteger Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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());