SoapMonth 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 gMonth
.
public ref class SoapMonth sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapMonth : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapMonth : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapMonth = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapMonth = class
interface ISoapXsd
Public NotInheritable Class SoapMonth
Implements ISoapXsd
- Herencia
-
SoapMonth
- Atributos
- Implementaciones
En el ejemplo de código siguiente se muestra cómo usar los miembros de la SoapMonth clase para convertir entre un SoapMonth objeto y una cadena XSD gMonth
.
using namespace System;
using namespace System::Runtime::Remoting::Metadata::W3cXsd2001;
int main()
{
// Parse an XSD gMonth to create a SoapMonth object.
// The timezone of this object is +08:00.
String^ xsdMonth = "--02--+08:00";
SoapMonth^ month = SoapMonth::Parse( xsdMonth );
// Print the month in XSD format.
Console::WriteLine( "The month in XSD format is {0}.",
month );
// Print the XSD type string of this particular SoapMonth object.
Console::WriteLine( "The XSD type of the SoapMonth instance is {0}.",
month->GetXsdType() );
// Print the value of the SoapMonth object.
Console::WriteLine( "The value of the SoapMonth instance is {0}.",
month->Value );
// Print the XSD type string of the SoapMonth class.
Console::WriteLine( "The XSD type of the class SoapMonth is {0}.",
SoapMonth::XsdType );
}
using System;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
public class Demo
{
public static void Main(string[] args)
{
// Parse an XSD gMonth to create a SoapMonth object.
// The time zone of this object is +08:00.
string xsdMonth = "--02--+08:00";
SoapMonth month = SoapMonth.Parse(xsdMonth);
// Print the month in XSD format.
Console.WriteLine("The month in XSD format is {0}.",
month.ToString());
// Print the XSD type string of this particular SoapMonth object.
Console.WriteLine("The XSD type of the SoapMonth object is {0}.",
month.GetXsdType());
// Print the value of the SoapMonth object.
Console.WriteLine("The value of the SoapMonth object is {0}.",
month.Value);
// Print the XSD type string of the SoapMonth class.
Console.WriteLine("The XSD type of the class SoapMonth is {0}.",
SoapMonth.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 SoapMonth. |
Soap |
Inicializa una nueva instancia de la clase SoapMonth 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 SoapMonth. |
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 |