SoapInteger 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 integer
XSD.
public ref class SoapInteger sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapInteger = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapInteger = class
interface ISoapXsd
Public NotInheritable Class SoapInteger
Implements ISoapXsd
- Herança
-
SoapInteger
- Atributos
- Implementações
Exemplos
O exemplo de código a seguir mostra como usar os membros na SoapInteger classe para converter entre um SoapInteger objeto e uma cadeia de caracteres XSD integer
.
#using <System.dll>
#using <System.Runtime.Remoting.dll>
using namespace System;
using namespace System::Runtime::Remoting::Metadata::W3cXsd2001;
int main()
{
// Parse an XSD formatted string to create a SoapInteger object.
String^ xsdIntegerString = L"-13";
SoapInteger^ xsdInteger = SoapInteger::Parse( xsdIntegerString );
// Print the value of the SoapInteger object in XSD format.
Console::WriteLine( L"The SoapInteger object in XSD format is {0}.",
xsdInteger );
// Print the XSD type string of the SoapInteger object.
Console::WriteLine( L"The XSD type of the SoapInteger "
L"object is {0}.", xsdInteger->GetXsdType() );
// Print the value of the SoapInteger object.
Console::WriteLine( L"The value of the SoapInteger object is {0}.",
xsdInteger->Value );
// Print the XSD type string of the SoapInteger class.
Console::WriteLine( L"The XSD type of the SoapInteger class is {0}.",
SoapInteger::XsdType );
}
using System;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
public class Demo
{
public static void Main(string[] args)
{
// Parse an XSD formatted string to create a SoapInteger object.
string xsdIntegerString = "-13";
SoapInteger xsdInteger = SoapInteger.Parse(xsdIntegerString);
// Print the value of the SoapInteger object in XSD format.
Console.WriteLine("The SoapInteger object in XSD format is {0}.",
xsdInteger.ToString());
// Print the XSD type string of the SoapInteger object.
Console.WriteLine("The XSD type of the SoapInteger " +
"object is {0}.", xsdInteger.GetXsdType());
// Print the value of the SoapInteger object.
Console.WriteLine(
"The value of the SoapInteger object is {0}.",
xsdInteger.Value);
// Print the XSD type string of the SoapInteger class.
Console.WriteLine("The XSD type of the SoapInteger class " +
"is {0}.", SoapInteger.XsdType);
}
}
Comentários
Para obter mais informações sobre tipos de dados XSD, consulte Referência de tipos de dados XML.
Construtores
SoapInteger() |
Inicializa uma nova instância da classe SoapInteger. |
SoapInteger(Decimal) |
Inicializa uma nova instância da classe SoapInteger com um valor Decimal. |
Propriedades
Value |
Obtém ou define o valor numérico 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) |
Converte o String especificado em um objeto SoapInteger. |
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