SoapNegativeInteger 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 negativeInteger
XSD.
public ref class SoapNegativeInteger sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapNegativeInteger : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapNegativeInteger = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapNegativeInteger = class
interface ISoapXsd
Public NotInheritable Class SoapNegativeInteger
Implements ISoapXsd
- Herança
-
SoapNegativeInteger
- Atributos
- Implementações
Exemplos
O exemplo de código a seguir mostra como usar os membros na SoapNegativeInteger classe para converter entre um SoapNegativeInteger objeto e uma cadeia de caracteres XSD negativeInteger
.
#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 SoapNegativeInteger
// object.
String^ xsdIntegerString = L"-13";
SoapNegativeInteger^ xsdInteger = SoapNegativeInteger::Parse(
xsdIntegerString );
// Print the value of the SoapNegativeInteger object in XSD format.
Console::WriteLine( L"The SoapNegativeInteger object in XSD format is {0}.",
xsdInteger );
// Print the XSD type string of the SoapNegativeInteger object.
Console::WriteLine( L"The XSD type of the SoapNegativeInteger "
L"object is {0}.", xsdInteger->GetXsdType() );
// Print the value of the SoapNegativeInteger object.
Console::WriteLine( L"The value of the SoapNegativeInteger "
L"object is {0}.", xsdInteger->Value );
// Print the XSD type string of the SoapNegativeInteger class.
Console::WriteLine( L"The XSD type of the SoapNegativeInteger class "
L"is {0}.", SoapNegativeInteger::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 SoapNegativeInteger
// object.
string xsdIntegerString = "-13";
SoapNegativeInteger xsdInteger =
SoapNegativeInteger.Parse(xsdIntegerString);
// Print the value of the SoapNegativeInteger object in XSD format.
Console.WriteLine(
"The SoapNegativeInteger object in XSD format is {0}.",
xsdInteger.ToString());
// Print the XSD type string of the SoapNegativeInteger object.
Console.WriteLine(
"The XSD type of the SoapNegativeInteger " +
"object is {0}.", xsdInteger.GetXsdType());
// Print the value of the SoapNegativeInteger object.
Console.WriteLine(
"The value of the SoapNegativeInteger " +
"object is {0}.", xsdInteger.Value);
// Print the XSD type string of the SoapNegativeInteger class.
Console.WriteLine(
"The XSD type of the SoapNegativeInteger class " +
"is {0}.", SoapNegativeInteger.XsdType);
}
}
Comentários
Para obter mais informações sobre tipos de dados XSD, consulte Referência de tipos de dados XML.
Construtores
SoapNegativeInteger() |
Inicializa uma nova instância da classe SoapNegativeInteger. |
SoapNegativeInteger(Decimal) |
Inicializa uma nova instância da classe SoapNegativeInteger 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 SoapNegativeInteger. |
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