SoapPositiveInteger Classe

Definição

Encapsula um tipo positiveInteger XSD.

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
Herança
SoapPositiveInteger
Atributos
Implementações

Exemplos

O exemplo de código a seguir mostra como usar os membros na SoapPositiveInteger classe para converter entre um SoapPositiveInteger objeto e uma cadeia de caracteres 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);
    }
}

Comentários

Para obter mais informações sobre tipos de dados XSD, consulte Referência de tipos de dados XML.

Construtores

SoapPositiveInteger()

Inicializa uma nova instância da classe SoapPositiveInteger.

SoapPositiveInteger(Decimal)

Inicializa uma nova instância da classe SoapInteger com um valor Decimal.

Propriedades

Value

Obtém ou define o valor numérico da instância atual.

XsdType

Obtém a XSD (linguagem de definição de esquema XML) do tipo SOAP atual.

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.

(Herdado de Object)
GetXsdType()

Retorna a XSD (linguagem de definição de esquema XML) do tipo SOAP atual.

MemberwiseClone()

Cria uma cópia superficial do Object atual.

(Herdado de Object)
Parse(String)

Converte o String especificado em um objeto SoapPositiveInteger.

ToString()

Retorna Value como um String.

Aplica-se a