Share via


SoapPositiveInteger Classe

Definizione

Esegue il wrapping di un 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
Ereditarietà
SoapPositiveInteger
Attributi
Implementazioni

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare i membri della classe per eseguire la SoapPositiveInteger conversione tra un SoapPositiveInteger oggetto e una stringa 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);
    }
}

Commenti

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

Costruttori

SoapPositiveInteger()

Inizializza una nuova istanza della classe SoapPositiveInteger.

SoapPositiveInteger(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 SoapPositiveInteger.

ToString()

Restituisce la proprietà Value come String.

Si applica a