SoapPositiveInteger Clase

Definición

Ajusta un tipo XSD positiveInteger.

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

Ejemplos

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

#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 SoapPositiveInteger
   // object.
   String^ xsdIntegerString = L"+13";
   SoapPositiveInteger^ xsdInteger =
      SoapPositiveInteger::Parse( xsdIntegerString );

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

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

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

   // Print the XSD type string of the SoapPositiveInteger class.
   Console::WriteLine( L"The XSD type of the SoapPositiveInteger class "
   L"is {0}.", SoapPositiveInteger::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 SoapPositiveInteger
        // object.
        string xsdIntegerString = "+13";
        SoapPositiveInteger xsdInteger =
            SoapPositiveInteger.Parse(xsdIntegerString);

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

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

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

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

Comentarios

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

Constructores

SoapPositiveInteger()

Inicializa una nueva instancia de la clase SoapPositiveInteger.

SoapPositiveInteger(Decimal)

Inicializa una nueva instancia de la clase SoapInteger 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 SoapPositiveInteger.

ToString()

Devuelve un parámetro Value como clase String.

Se aplica a