SoapDay 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 gDay
XSD.
public ref class SoapDay sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapDay : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapDay : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapDay = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapDay = class
interface ISoapXsd
Public NotInheritable Class SoapDay
Implements ISoapXsd
- Héritage
-
SoapDay
- Attributs
- Implémente
L’exemple de code suivant montre comment utiliser les membres de la SoapDay classe pour effectuer une conversion entre un SoapDay objet et une chaîne XSD gDay
.
using namespace System;
using namespace System::Runtime::Remoting::Metadata::W3cXsd2001;
int main()
{
// Parse an XSD gDay to create a SoapDay object.
// The time zone of this object is +08:00.
String^ xsdDay = "---30+08:00";
SoapDay^ day = SoapDay::Parse( xsdDay );
// Display the day in XSD format.
Console::WriteLine( "The day in XSD format is {0}.",
day );
// Display the XSD type string of this particular SoapDay object.
Console::WriteLine( "The XSD type of the SoapDay instance is {0}.",
day->GetXsdType() );
// Display the value of the SoapDay object.
Console::WriteLine( "The value of the SoapDay instance is {0}.",
day->Value );
// Display the XSD type string of the SoapDay class.
Console::WriteLine( "The XSD type of the class SoapDay is {0}.",
SoapDay::XsdType );
}
using System;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
public class Demo
{
public static void Main(string[] args)
{
// Parse an XSD gDay to create a SoapDay object.
// The time zone of this object is +08:00.
string xsdDay = "---30+08:00";
SoapDay day = SoapDay.Parse(xsdDay);
// Display the day in XSD format.
Console.WriteLine("The day in XSD format is {0}.",
day.ToString());
// Display the XSD type string of this particular SoapDay object.
Console.WriteLine("The XSD type of the SoapDay object is {0}.",
day.GetXsdType());
// Display the value of the SoapDay object.
Console.WriteLine("The value of the SoapDay object is {0}.",
day.Value);
// Display the XSD type string of the SoapDay class.
Console.WriteLine("The XSD type of the class SoapDay is {0}.",
SoapDay.XsdType);
}
}
Pour plus d’informations sur les types de données XSD, consultez Référence des types de données XML.
Soap |
Initialise une nouvelle instance de la classe SoapDay. |
Soap |
Initialise une nouvelle instance de la classe SoapDay avec un objet DateTime spécifié. |
Value |
Obtient ou définit la date et l'heure 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) | |
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 :