Compartir a través de


SoapNonPositiveInteger Constructores

Definición

Inicializa una nueva instancia de la clase SoapNonPositiveInteger.

Sobrecargas

SoapNonPositiveInteger()

Inicializa una nueva instancia de la clase SoapNonPositiveInteger.

SoapNonPositiveInteger(Decimal)

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

SoapNonPositiveInteger()

Inicializa una nueva instancia de la clase SoapNonPositiveInteger.

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

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar este constructor.

// Create a SoapNonPositiveInteger object.
SoapNonPositiveInteger^ xsdInteger = gcnew SoapNonPositiveInteger;
xsdInteger->Value = -14;
Console::WriteLine( L"The value of the SoapNonPositiveInteger object is {0}.",
   xsdInteger );
// Create a SoapNonPositiveInteger object.
SoapNonPositiveInteger xsdInteger =
    new SoapNonPositiveInteger();
xsdInteger.Value = -14;
Console.WriteLine(
    "The value of the SoapNonPositiveInteger object is {0}.",
    xsdInteger.ToString());

Se aplica a

SoapNonPositiveInteger(Decimal)

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

public:
 SoapNonPositiveInteger(System::Decimal value);
public SoapNonPositiveInteger (decimal value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonPositiveInteger : decimal -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonPositiveInteger
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 mayor que cero.

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar este constructor.

// Create a SoapNonPositiveInteger object.
Decimal decimalValue = -14;
SoapNonPositiveInteger^ xsdInteger = gcnew SoapNonPositiveInteger(
   decimalValue );
Console::WriteLine( L"The value of the SoapNonPositiveInteger object is {0}.",
   xsdInteger );
// Create a SoapNonPositiveInteger object.
decimal decimalValue = -14;
SoapNonPositiveInteger xsdInteger =
    new SoapNonPositiveInteger(decimalValue);
Console.WriteLine(
    "The value of the SoapNonPositiveInteger object is {0}.",
    xsdInteger.ToString());

Se aplica a