SoapInteger Construtores

Definição

Inicializa uma nova instância da classe SoapInteger.Initializes a new instance of the SoapInteger class.

Sobrecargas

SoapInteger()

Inicializa uma nova instância da classe SoapInteger.Initializes a new instance of the SoapInteger class.

SoapInteger(Decimal)

Inicializa uma nova instância da classe SoapInteger com um valor Decimal.Initializes a new instance of the SoapInteger class with a Decimal value.

SoapInteger()

Inicializa uma nova instância da classe SoapInteger.Initializes a new instance of the SoapInteger class.

public:
 SoapInteger();
public SoapInteger ();
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 SoapInteger object.
SoapInteger^ xsdInteger = gcnew SoapInteger;
xsdInteger->Value = -14;
Console::WriteLine( L"The value of the SoapInteger object is {0}.",
   xsdInteger );
// Create a SoapInteger object.
SoapInteger xsdInteger = new SoapInteger();
xsdInteger.Value = -14;
Console.WriteLine(
    "The value of the SoapInteger object is {0}.",
    xsdInteger.ToString());

Aplica-se a

SoapInteger(Decimal)

Inicializa uma nova instância da classe SoapInteger com um valor Decimal.Initializes a new instance of the SoapInteger class with a Decimal value.

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

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 SoapInteger object.
Decimal decimalValue = -14;
SoapInteger^ xsdInteger = gcnew SoapInteger( decimalValue );
Console::WriteLine( L"The value of the SoapInteger object is {0}.",
   xsdInteger );
// Create a SoapInteger object.
decimal decimalValue = -14;
SoapInteger xsdInteger = new SoapInteger(decimalValue);
Console.WriteLine(
    "The value of the SoapInteger object is {0}.",
    xsdInteger.ToString());

Aplica-se a