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