SoapDay Classe

Définition

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

Exemples

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

Remarques

Pour plus d’informations sur les types de données XSD, consultez Référence des types de données XML.

Constructeurs

SoapDay()

Initialise une nouvelle instance de la classe SoapDay.

SoapDay(DateTime)

Initialise une nouvelle instance de la classe SoapDay avec un objet DateTime spécifié.

Propriétés

Value

Obtient ou définit la date et l'heure de l'instance actuelle.

XsdType

Obtient le langage XSD (XML Schema Definition) du type SOAP en cours.

Méthodes

Equals(Object)

Détermine si l'objet spécifié est égal à l'objet actuel.

(Hérité de Object)
GetHashCode()

Fait office de fonction de hachage par défaut.

(Hérité de Object)
GetType()

Obtient le Type de l'instance actuelle.

(Hérité de Object)
GetXsdType()

Retourne le langage XSD (XML Schema Definition) du type SOAP en cours.

MemberwiseClone()

Crée une copie superficielle du Object actuel.

(Hérité de Object)
Parse(String)

Convertit le String spécifié en un objet SoapDay.

ToString()

Retourne une Value comme String.

S’applique à