Freigeben über


SoapNegativeInteger Klasse

Definition

Umschließt einen XSD-negativeInteger-Typ.

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
Vererbung
SoapNegativeInteger
Attribute
Implementiert

Beispiele

Das folgende Codebeispiel zeigt, wie die Member in der SoapNegativeInteger -Klasse verwendet werden, um zwischen einem SoapNegativeInteger Objekt und einer XSD-Zeichenfolge negativeInteger zu konvertieren.

#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);
    }
}

Hinweise

Weitere Informationen zu XSD-Datentypen finden Sie unter XML-Datentypenreferenz.

Konstruktoren

SoapNegativeInteger()

Initialisiert eine neue Instanz der SoapNegativeInteger-Klasse.

SoapNegativeInteger(Decimal)

Initialisiert eine neue Instanz der SoapNegativeInteger-Klasse mit einem Decimal-Wert.

Eigenschaften

Value

Ruft den numerischen Wert der aktuellen Instanz ab oder legt diesen fest.

XsdType

Ruft die XSD (XML Schema Definition) des aktuellen SOAP-Typs ab.

Methoden

Equals(Object)

Bestimmt, ob das angegebene Objekt gleich dem aktuellen Objekt ist.

(Geerbt von Object)
GetHashCode()

Fungiert als Standardhashfunktion.

(Geerbt von Object)
GetType()

Ruft den Type der aktuellen Instanz ab.

(Geerbt von Object)
GetXsdType()

Gibt die XSD (XML Schema Definition) des aktuellen SOAP-Typs zurück.

MemberwiseClone()

Erstellt eine flache Kopie des aktuellen Object.

(Geerbt von Object)
Parse(String)

Konvertiert den angegebenen String in ein SoapNegativeInteger-Objekt.

ToString()

Gibt Value als String zurück.

Gilt für: