Compartilhar via


SoapNonNegativeInteger Construtores

Definição

Inicializa uma nova instância da classe SoapNonNegativeInteger.

Sobrecargas

SoapNonNegativeInteger()

Inicializa uma nova instância da classe SoapNonNegativeInteger.

SoapNonNegativeInteger(Decimal)

Inicializa uma nova instância da classe SoapNonNegativeInteger com um valor Decimal.

SoapNonNegativeInteger()

Inicializa uma nova instância da classe SoapNonNegativeInteger.

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

Exemplos

O exemplo de código a seguir mostra como usar esse construtor.

// 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.

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.

Exceções

value é menor que 0.

Exemplos

O exemplo de código a seguir mostra como usar esse construtor.

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

Aplica-se a