SoapNonNegativeInteger 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-nonNegativeInteger
-Typ.
public ref class SoapNonNegativeInteger sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapNonNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapNonNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapNonNegativeInteger = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapNonNegativeInteger = class
interface ISoapXsd
Public NotInheritable Class SoapNonNegativeInteger
Implements ISoapXsd
- Vererbung
-
SoapNonNegativeInteger
- Attribute
- Implementiert
Beispiele
Im folgenden Codebeispiel wird veranschaulicht, wie die Member in der SoapNonNegativeInteger -Klasse verwendet werden, um zwischen einem SoapNonNegativeInteger Objekt und einer XSD-Zeichenfolge nonNegativeInteger
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 SoapNonNegativeInteger
// object.
String^ xsdIntegerString = L"+13";
SoapNonNegativeInteger^ xsdInteger = SoapNonNegativeInteger::Parse(
xsdIntegerString );
// Print the value of the SoapNonNegativeInteger object
// in XSD format.
Console::WriteLine(
L"The SoapNonNegativeInteger object in XSD format is {0}.",
xsdInteger );
// Print the XSD type string of the SoapNonNegativeInteger object.
Console::WriteLine( L"The XSD type of the SoapNonNegativeInteger "
L"object is {0}.", xsdInteger->GetXsdType() );
// Print the value of the SoapNonNegativeInteger object.
Console::WriteLine( L"The value of the SoapNonNegativeInteger "
L"object is {0}.", xsdInteger->Value );
// Print the XSD type string of the SoapNonNegativeInteger class.
Console::WriteLine( L"The XSD type of the SoapNonNegativeInteger class "
L"is {0}.", SoapNonNegativeInteger::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 SoapNonNegativeInteger
// object.
string xsdIntegerString = "+13";
SoapNonNegativeInteger xsdInteger =
SoapNonNegativeInteger.Parse(xsdIntegerString);
// Print the value of the SoapNonNegativeInteger object
// in XSD format.
Console.WriteLine(
"The SoapNonNegativeInteger object in XSD format is {0}.",
xsdInteger.ToString());
// Print the XSD type string of the SoapNonNegativeInteger object.
Console.WriteLine(
"The XSD type of the SoapNonNegativeInteger " +
"object is {0}.", xsdInteger.GetXsdType());
// Print the value of the SoapNonNegativeInteger object.
Console.WriteLine(
"The value of the SoapNonNegativeInteger " +
"object is {0}.", xsdInteger.Value);
// Print the XSD type string of the SoapNonNegativeInteger class.
Console.WriteLine(
"The XSD type of the SoapNonNegativeInteger class " +
"is {0}.", SoapNonNegativeInteger.XsdType);
}
}
Hinweise
Weitere Informationen zu XSD-Datentypen finden Sie unter XML-Datentypenreferenz.
Konstruktoren
SoapNonNegativeInteger() |
Initialisiert eine neue Instanz der SoapNonNegativeInteger-Klasse. |
SoapNonNegativeInteger(Decimal) |
Initialisiert eine neue Instanz der SoapNonNegativeInteger-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 SoapNonNegativeInteger-Objekt. |
ToString() |