SoapNonNegativeInteger Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância da classe SoapNonNegativeInteger.
Sobrecargas
SoapNonNegativeInteger() |
Inicializa uma nova instância da classe SoapNonNegativeInteger. |
SoapNonNegativeInteger(Decimal) |
Inicializa uma nova instância da classe SoapNonNegativeInteger com um valor Decimal. |
SoapNonNegativeInteger()
Inicializa uma nova instância da classe SoapNonNegativeInteger.
public:
SoapNonNegativeInteger();
public SoapNonNegativeInteger ();
Public Sub New ()
Exemplos
O exemplo de código a seguir mostra como usar esse construtor.
// Create a SoapNonNegativeInteger object.
SoapNonNegativeInteger^ xsdInteger = gcnew SoapNonNegativeInteger;
xsdInteger->Value = +14;
Console::WriteLine( L"The value of the SoapNonNegativeInteger object is {0}.", xsdInteger );
// Create a SoapNonNegativeInteger object.
SoapNonNegativeInteger xsdInteger =
new SoapNonNegativeInteger();
xsdInteger.Value = +14;
Console.WriteLine(
"The value of the SoapNonNegativeInteger object is {0}.",
xsdInteger.ToString());
Aplica-se a
SoapNonNegativeInteger(Decimal)
Inicializa uma nova instância da classe SoapNonNegativeInteger com um valor Decimal.
public:
SoapNonNegativeInteger(System::Decimal value);
public SoapNonNegativeInteger (decimal value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonNegativeInteger : decimal -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonNegativeInteger
Public Sub New (value As Decimal)
Parâmetros
Exceções
value
é menor que 0.
Exemplos
O exemplo de código a seguir mostra como usar esse construtor.
// Create a SoapNonNegativeInteger object.
Decimal decimalValue = +14;
SoapNonNegativeInteger^ xsdInteger = gcnew SoapNonNegativeInteger( decimalValue );
Console::WriteLine( L"The value of the SoapNonNegativeInteger object is {0}.", xsdInteger );
// Create a SoapNonNegativeInteger object.
decimal decimalValue = +14;
SoapNonNegativeInteger xsdInteger =
new SoapNonNegativeInteger(decimalValue);
Console.WriteLine(
"The value of the SoapNonNegativeInteger object is {0}.",
xsdInteger.ToString());
Aplica-se a
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de