SoapDay Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Encapsula um tipo 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
- Herança
-
SoapDay
- Atributos
- Implementações
Exemplos
O exemplo de código a seguir mostra como usar os membros na SoapDay classe para converter entre um SoapDay objeto e uma cadeia de caracteres 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);
}
}
Comentários
Para obter mais informações sobre tipos de dados XSD, consulte Referência de tipos de dados XML.
Construtores
SoapDay() |
Inicializa uma nova instância da classe SoapDay. |
SoapDay(DateTime) |
Inicializa uma nova instância da classe SoapDay com um objeto DateTime especificado. |
Propriedades
Value |
Obtém ou define a data e hora da instância atual. |
XsdType |
Obtém a XSD (linguagem de definição de esquema XML) do tipo SOAP atual. |
Métodos
Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual. (Herdado de Object) |
GetHashCode() |
Serve como a função de hash padrão. (Herdado de Object) |
GetType() |
Obtém o Type da instância atual. (Herdado de Object) |
GetXsdType() |
Retorna a XSD (linguagem de definição de esquema XML) do tipo SOAP atual. |
MemberwiseClone() |
Cria uma cópia superficial do Object atual. (Herdado de Object) |
Parse(String) | |
ToString() |
Aplica-se a
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de