SoapDay Clase

Definición

Ajusta un tipo XSD gDay.

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
Herencia
SoapDay
Atributos
Implementaciones

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar los miembros de la SoapDay clase para convertir entre un SoapDay objeto y una cadena 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);
    }
}

Comentarios

Para obtener más información sobre los tipos de datos XSD, vea Referencia de tipos de datos XML.

Constructores

SoapDay()

Inicializa una nueva instancia de la clase SoapDay.

SoapDay(DateTime)

Inicializa una nueva instancia de la clase SoapDay con el objeto DateTime especificado.

Propiedades

Value

Obtiene o establece la fecha y la hora de la instancia actual.

XsdType

Obtiene el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual.

Métodos

Equals(Object)

Determina si el objeto especificado es igual que el objeto actual.

(Heredado de Object)
GetHashCode()

Sirve como la función hash predeterminada.

(Heredado de Object)
GetType()

Obtiene el Type de la instancia actual.

(Heredado de Object)
GetXsdType()

Devuelve el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual.

MemberwiseClone()

Crea una copia superficial del Object actual.

(Heredado de Object)
Parse(String)

Convierte el objeto String especificado en un objeto SoapDay.

ToString()

Devuelve un parámetro Value como clase String.

Se aplica a