Share via


SoapPositiveInteger Constructores

Definición

Inicializa una nueva instancia de la clase SoapPositiveInteger.

Sobrecargas

SoapPositiveInteger()

Inicializa una nueva instancia de la clase SoapPositiveInteger.

SoapPositiveInteger(Decimal)

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

SoapPositiveInteger()

Inicializa una nueva instancia de la clase SoapPositiveInteger.

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

Ejemplos

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

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

Se aplica a

SoapPositiveInteger(Decimal)

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

public:
 SoapPositiveInteger(System::Decimal value);
public SoapPositiveInteger (decimal value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapPositiveInteger : decimal -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapPositiveInteger
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 1.

Ejemplos

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

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

Se aplica a