Compartir a través de


SoapNonNegativeInteger Constructores

Definición

Inicializa una nueva instancia de la clase SoapNonNegativeInteger.

Sobrecargas

SoapNonNegativeInteger()

Inicializa una nueva instancia de la clase SoapNonNegativeInteger.

SoapNonNegativeInteger(Decimal)

Inicializa una nueva instancia de la clase SoapNonNegativeInteger con un valor Decimal.

SoapNonNegativeInteger()

Inicializa una nueva instancia de la clase SoapNonNegativeInteger.

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

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar este 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());

Se aplica a

SoapNonNegativeInteger(Decimal)

Inicializa una nueva instancia de la clase SoapNonNegativeInteger con un 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

Valor Decimal con el que se va a inicializar la instancia actual.

Excepciones

value es menor que 0.

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar este 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());

Se aplica a