SoapNonNegativeInteger Construtores
Definição
Inicializa uma nova instância da classe SoapNonNegativeInteger.Initializes a new instance of the SoapNonNegativeInteger class.
Sobrecargas
| SoapNonNegativeInteger() |
Inicializa uma nova instância da classe SoapNonNegativeInteger.Initializes a new instance of the SoapNonNegativeInteger class. |
| SoapNonNegativeInteger(Decimal) |
Inicializa uma nova instância da classe SoapNonNegativeInteger com um valor Decimal.Initializes a new instance of the SoapNonNegativeInteger class with a Decimal value. |
SoapNonNegativeInteger()
Inicializa uma nova instância da classe SoapNonNegativeInteger.Initializes a new instance of the SoapNonNegativeInteger class.
public:
SoapNonNegativeInteger();
public SoapNonNegativeInteger ();
Public Sub New ()
Exemplos
O exemplo de código a seguir mostra como usar esse construtor.The following code example shows how to use this constructor.
// 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());
Aplica-se a
SoapNonNegativeInteger(Decimal)
Inicializa uma nova instância da classe SoapNonNegativeInteger com um valor Decimal.Initializes a new instance of the SoapNonNegativeInteger class with a Decimal value.
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)
Parâmetros
- value
- Decimal
Um valor Decimal para inicializar a instância atual.A Decimal value to initialize the current instance.
Exceções
value é menor que 0.value is less than 0.
Exemplos
O exemplo de código a seguir mostra como usar esse construtor.The following code example shows how to use this constructor.
// 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());