Share via


SoapInteger Classe

Definizione

Esegue il wrapping di un tipo integer XSD.

public ref class SoapInteger sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapInteger = class
    interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapInteger = class
    interface ISoapXsd
Public NotInheritable Class SoapInteger
Implements ISoapXsd
Ereditarietà
SoapInteger
Attributi
Implementazioni

Esempio

Nell'esempio di codice seguente viene illustrato come usare i membri della SoapInteger classe per convertire tra un oggetto e una SoapInteger stringa XSD integer .

#using <System.dll>
#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 SoapInteger object.
   String^ xsdIntegerString = L"-13";
   SoapInteger^ xsdInteger = SoapInteger::Parse( xsdIntegerString );

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

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

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

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

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

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

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

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

Commenti

Per altre informazioni sui tipi di dati XSD, vedere Informazioni di riferimento sui tipi di dati XML.

Costruttori

SoapInteger()

Inizializza una nuova istanza della classe SoapInteger.

SoapInteger(Decimal)

Inizializza una nuova istanza della classe SoapInteger con un valore Decimal.

Proprietà

Value

Ottiene o imposta il valore numerico dell'istanza corrente.

XsdType

Ottiene il linguaggio XSD (XML Schema Definition) del tipo SOAP corrente.

Metodi

Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.

(Ereditato da Object)
GetHashCode()

Funge da funzione hash predefinita.

(Ereditato da Object)
GetType()

Ottiene l'oggetto Type dell'istanza corrente.

(Ereditato da Object)
GetXsdType()

Restituisce l'oggetto XML Schema Definition Language (XSD) del tipo SOAP corrente.

MemberwiseClone()

Crea una copia superficiale dell'oggetto Object corrente.

(Ereditato da Object)
Parse(String)

Converte l'oggetto String specificato in un oggetto SoapInteger.

ToString()

Restituisce la proprietà Value come String.

Si applica a