SoapDay Clase
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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
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);
}
}
Para obtener más información sobre los tipos de datos XSD, vea Referencia de tipos de datos XML.
Soap |
Inicializa una nueva instancia de la clase SoapDay. |
Soap |
Inicializa una nueva instancia de la clase SoapDay con el objeto DateTime especificado. |
Value |
Obtiene o establece la fecha y la hora de la instancia actual. |
Xsd |
Obtiene el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual. |
Equals(Object) |
Determina si el objeto especificado es igual que el objeto actual. (Heredado de Object) |
Get |
Sirve como la función hash predeterminada. (Heredado de Object) |
Get |
Obtiene el Type de la instancia actual. (Heredado de Object) |
Get |
Devuelve el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual. |
Memberwise |
Crea una copia superficial del Object actual. (Heredado de Object) |
Parse(String) |
Convierte el objeto String especificado en un objeto SoapDay. |
To |
Producto | Versiones |
---|---|
.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 |
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: