SoapInteger Classe
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Inclut dans un wrapper un type integer
XSD.
public ref class SoapInteger sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapInteger = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapInteger = class
interface ISoapXsd
Public NotInheritable Class SoapInteger
Implements ISoapXsd
- Héritage
-
SoapInteger
- Attributs
- Implémente
L’exemple de code suivant montre comment utiliser les membres de la SoapInteger classe pour convertir entre un SoapInteger objet et une chaîne XSD integer
.
#using <System.dll>
#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 SoapInteger object.
String^ xsdIntegerString = L"-13";
SoapInteger^ xsdInteger = SoapInteger::Parse( xsdIntegerString );
// Print the value of the SoapInteger object in XSD format.
Console::WriteLine( L"The SoapInteger object in XSD format is {0}.",
xsdInteger );
// Print the XSD type string of the SoapInteger object.
Console::WriteLine( L"The XSD type of the SoapInteger "
L"object is {0}.", xsdInteger->GetXsdType() );
// Print the value of the SoapInteger object.
Console::WriteLine( L"The value of the SoapInteger object is {0}.",
xsdInteger->Value );
// Print the XSD type string of the SoapInteger class.
Console::WriteLine( L"The XSD type of the SoapInteger class is {0}.",
SoapInteger::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 SoapInteger object.
string xsdIntegerString = "-13";
SoapInteger xsdInteger = SoapInteger.Parse(xsdIntegerString);
// Print the value of the SoapInteger object in XSD format.
Console.WriteLine("The SoapInteger object in XSD format is {0}.",
xsdInteger.ToString());
// Print the XSD type string of the SoapInteger object.
Console.WriteLine("The XSD type of the SoapInteger " +
"object is {0}.", xsdInteger.GetXsdType());
// Print the value of the SoapInteger object.
Console.WriteLine(
"The value of the SoapInteger object is {0}.",
xsdInteger.Value);
// Print the XSD type string of the SoapInteger class.
Console.WriteLine("The XSD type of the SoapInteger class " +
"is {0}.", SoapInteger.XsdType);
}
}
Pour plus d’informations sur les types de données XSD, consultez Référence sur les types de données XML.
Soap |
Initialise une nouvelle instance de la classe SoapInteger. |
Soap |
Initialise une nouvelle instance de la classe SoapInteger avec une valeur Decimal. |
Value |
Obtient ou définit la valeur numérique de l'instance actuelle. |
Xsd |
Obtient le langage XSD (XML Schema Definition) du type SOAP en cours. |
Equals(Object) |
Détermine si l'objet spécifié est égal à l'objet actuel. (Hérité de Object) |
Get |
Fait office de fonction de hachage par défaut. (Hérité de Object) |
Get |
Obtient le Type de l'instance actuelle. (Hérité de Object) |
Get |
Retourne le langage XSD (XML Schema Definition) du type SOAP en cours. |
Memberwise |
Crée une copie superficielle du Object actuel. (Hérité de Object) |
Parse(String) |
Convertit le String spécifié en un objet SoapInteger. |
To |
Produit | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :