SoapPositiveInteger Construtores
Definição
Inicializa uma nova instância da classe SoapPositiveInteger.Initializes a new instance of the SoapPositiveInteger class.
Sobrecargas
| SoapPositiveInteger() |
Inicializa uma nova instância da classe SoapPositiveInteger.Initializes a new instance of the SoapPositiveInteger class. |
| SoapPositiveInteger(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. |
SoapPositiveInteger()
Inicializa uma nova instância da classe SoapPositiveInteger.Initializes a new instance of the SoapPositiveInteger class.
public:
SoapPositiveInteger();
public SoapPositiveInteger ();
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 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());
Aplica-se a
SoapPositiveInteger(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:
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
Um valor Decimal para inicializar a instância atual.A Decimal value to initialize the current instance.
Exceções
value é menor que 1.value is less than 1.
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 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());