SoapNonNegativeInteger Clase

Definición

Ajusta un tipo XSD nonNegativeInteger.

public ref class SoapNonNegativeInteger sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapNonNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapNonNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapNonNegativeInteger = class
    interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapNonNegativeInteger = class
    interface ISoapXsd
Public NotInheritable Class SoapNonNegativeInteger
Implements ISoapXsd
Herencia
SoapNonNegativeInteger
Atributos
Implementaciones

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar los miembros de la SoapNonNegativeInteger clase para convertir entre un SoapNonNegativeInteger objeto y una cadena XSD nonNegativeInteger .

#using <System.Runtime.Remoting.dll>
using namespace System;
using namespace System::Runtime::Remoting::Metadata::W3cXsd2001;

int main()
{
   // Parse an XSD formatted string to create a SoapNonNegativeInteger
   // object.
   String^ xsdIntegerString = L"+13";
   SoapNonNegativeInteger^ xsdInteger = SoapNonNegativeInteger::Parse(
      xsdIntegerString );

   // Print the value of the SoapNonNegativeInteger object
   // in XSD format.
   Console::WriteLine( 
      L"The SoapNonNegativeInteger object in XSD format is {0}.",
      xsdInteger );

   // Print the XSD type string of the SoapNonNegativeInteger object.
   Console::WriteLine( L"The XSD type of the SoapNonNegativeInteger "
   L"object is {0}.", xsdInteger->GetXsdType() );

   // Print the value of the SoapNonNegativeInteger object.
   Console::WriteLine( L"The value of the SoapNonNegativeInteger "
   L"object is {0}.", xsdInteger->Value );

   // Print the XSD type string of the SoapNonNegativeInteger class.
   Console::WriteLine( L"The XSD type of the SoapNonNegativeInteger class "
   L"is {0}.", SoapNonNegativeInteger::XsdType );
}
using System;
using System.Runtime.Remoting.Metadata.W3cXsd2001;

public class Demo
{
    public static void Main(string[] args)
    {
        // Parse an XSD formatted string to create a SoapNonNegativeInteger
        // object.
        string xsdIntegerString = "+13";
        SoapNonNegativeInteger xsdInteger =
            SoapNonNegativeInteger.Parse(xsdIntegerString);

        // Print the value of the SoapNonNegativeInteger object
        // in XSD format.
        Console.WriteLine(
            "The SoapNonNegativeInteger object in XSD format is {0}.",
            xsdInteger.ToString());

        // Print the XSD type string of the SoapNonNegativeInteger object.
        Console.WriteLine(
            "The XSD type of the SoapNonNegativeInteger " +
            "object is {0}.", xsdInteger.GetXsdType());

        // Print the value of the SoapNonNegativeInteger object.
        Console.WriteLine(
            "The value of the SoapNonNegativeInteger " +
            "object is {0}.", xsdInteger.Value);

        // Print the XSD type string of the SoapNonNegativeInteger class.
        Console.WriteLine(
            "The XSD type of the SoapNonNegativeInteger class " +
            "is {0}.", SoapNonNegativeInteger.XsdType);
    }
}

Comentarios

Para obtener más información sobre los tipos de datos XSD, vea Referencia de tipos de datos XML.

Constructores

SoapNonNegativeInteger()

Inicializa una nueva instancia de la clase SoapNonNegativeInteger.

SoapNonNegativeInteger(Decimal)

Inicializa una nueva instancia de la clase SoapNonNegativeInteger con un valor Decimal.

Propiedades

Value

Obtiene o establece el valor numérico de la instancia actual.

XsdType

Obtiene el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual.

Métodos

Equals(Object)

Determina si el objeto especificado es igual que el objeto actual.

(Heredado de Object)
GetHashCode()

Sirve como la función hash predeterminada.

(Heredado de Object)
GetType()

Obtiene el Type de la instancia actual.

(Heredado de Object)
GetXsdType()

Devuelve el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual.

MemberwiseClone()

Crea una copia superficial del Object actual.

(Heredado de Object)
Parse(String)

Convierte el objeto String especificado en un objeto SoapNonNegativeInteger.

ToString()

Devuelve un parámetro Value como clase String.

Se aplica a