Share via


SoapNegativeInteger Classe

Definizione

Esegue il wrapping di un tipo negativeInteger XSD.

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

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare i membri della classe per eseguire la SoapNegativeInteger conversione tra un SoapNegativeInteger oggetto e una stringa XSD negativeInteger .

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

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

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

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

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

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

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

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

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

Commenti

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

Costruttori

SoapNegativeInteger()

Inizializza una nuova istanza della classe SoapNegativeInteger.

SoapNegativeInteger(Decimal)

Inizializza una nuova istanza della classe SoapNegativeInteger 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 SoapNegativeInteger.

ToString()

Restituisce la proprietà Value come String.

Si applica a