SoapNonPositiveInteger Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Umschließt einen XSD-nonPositiveInteger
-Typ.
public ref class SoapNonPositiveInteger sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapNonPositiveInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapNonPositiveInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapNonPositiveInteger = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapNonPositiveInteger = class
interface ISoapXsd
Public NotInheritable Class SoapNonPositiveInteger
Implements ISoapXsd
- Vererbung
-
SoapNonPositiveInteger
- Attribute
- Implementiert
Beispiele
Das folgende Codebeispiel zeigt, wie die Member in der SoapNonPositiveInteger Klasse zum Konvertieren zwischen einem SoapNonPositiveInteger Objekt und einer XSD-Zeichenfolge nonPositiveInteger
verwendet werden.
#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 SoapNonPositiveInteger
// object.
String^ xsdIntegerString = L"-13";
SoapNonPositiveInteger^ xsdInteger =
SoapNonPositiveInteger::Parse( xsdIntegerString );
// Print the value of the SoapNonPositiveInteger object
// in XSD format.
Console::WriteLine( L"The SoapNonPositiveInteger object in XSD format is {0}.",
xsdInteger );
// Print the XSD type string of the SoapNonPositiveInteger object.
Console::WriteLine( L"The XSD type of the SoapNonPositiveInteger object is {0}.",
xsdInteger->GetXsdType() );
// Print the value of the SoapNonPositiveInteger object.
Console::WriteLine( L"The value of the SoapNonPositiveInteger object is {0}.",
xsdInteger->Value );
// Print the XSD type string of the SoapNonPositiveInteger class.
Console::WriteLine( L"The XSD type of the SoapNonPositiveInteger class is {0}.",
SoapNonPositiveInteger::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 SoapNonPositiveInteger
// object.
string xsdIntegerString = "-13";
SoapNonPositiveInteger xsdInteger =
SoapNonPositiveInteger.Parse(xsdIntegerString);
// Print the value of the SoapNonPositiveInteger object
// in XSD format.
Console.WriteLine(
"The SoapNonPositiveInteger object in XSD format is {0}.",
xsdInteger.ToString());
// Print the XSD type string of the SoapNonPositiveInteger object.
Console.WriteLine(
"The XSD type of the SoapNonPositiveInteger " +
"object is {0}.", xsdInteger.GetXsdType());
// Print the value of the SoapNonPositiveInteger object.
Console.WriteLine(
"The value of the SoapNonPositiveInteger " +
"object is {0}.", xsdInteger.Value);
// Print the XSD type string of the SoapNonPositiveInteger class.
Console.WriteLine(
"The XSD type of the SoapNonPositiveInteger class " +
"is {0}.", SoapNonPositiveInteger.XsdType);
}
}
Hinweise
Weitere Informationen zu XSD-Datentypen finden Sie unter XML-Datentypenreferenz.
Konstruktoren
SoapNonPositiveInteger() |
Initialisiert eine neue Instanz der SoapNonPositiveInteger-Klasse. |
SoapNonPositiveInteger(Decimal) |
Initialisiert eine neue Instanz der SoapNonPositiveInteger-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 SoapNonPositiveInteger-Objekt. |
ToString() |