SoapNegativeInteger Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Inicializa una nueva instancia de la clase SoapNegativeInteger.
Sobrecargas
SoapNegativeInteger() |
Inicializa una nueva instancia de la clase SoapNegativeInteger. |
SoapNegativeInteger(Decimal) |
Inicializa una nueva instancia de la clase SoapNegativeInteger con un valor Decimal. |
SoapNegativeInteger()
Inicializa una nueva instancia de la clase SoapNegativeInteger.
public:
SoapNegativeInteger();
public SoapNegativeInteger ();
Public Sub New ()
Ejemplos
En el ejemplo de código siguiente se muestra cómo usar este constructor.
// Create a SoapNegativeInteger object.
SoapNegativeInteger^ xsdInteger = gcnew SoapNegativeInteger;
xsdInteger->Value = -14;
Console::WriteLine( L"The value of the SoapNegativeInteger object is {0}.",
xsdInteger );
// Create a SoapNegativeInteger object.
SoapNegativeInteger xsdInteger =
new SoapNegativeInteger();
xsdInteger.Value = -14;
Console.WriteLine(
"The value of the SoapNegativeInteger object is {0}.",
xsdInteger.ToString());
Se aplica a
SoapNegativeInteger(Decimal)
Inicializa una nueva instancia de la clase SoapNegativeInteger con un valor Decimal.
public:
SoapNegativeInteger(System::Decimal value);
public SoapNegativeInteger (decimal value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNegativeInteger : decimal -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNegativeInteger
Public Sub New (value As Decimal)
Parámetros
Excepciones
value
es mayor que -1.
Ejemplos
En el ejemplo de código siguiente se muestra cómo usar este constructor.
// Create a SoapNegativeInteger object.
Decimal decimalValue = -14;
SoapNegativeInteger^ xsdInteger = gcnew SoapNegativeInteger(
decimalValue );
Console::WriteLine( L"The value of the SoapNegativeInteger object is {0}.",
xsdInteger );
// Create a SoapNegativeInteger object.
decimal decimalValue = -14;
SoapNegativeInteger xsdInteger =
new SoapNegativeInteger(decimalValue);
Console.WriteLine(
"The value of the SoapNegativeInteger object is {0}.",
xsdInteger.ToString());
Se aplica a
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de