SoapNegativeInteger Classe
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Envolve um tipo XSD negativeInteger .
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 seguinte mostra como usar os membros da SoapNegativeInteger classe para converter entre um SoapNegativeInteger objeto e uma cadeia 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);
}
}
Observações
Para mais informações sobre tipos de dados XSD, consulte Referência de Tipos de Dados XML.
Construtores
| Name | Description |
|---|---|
| SoapNegativeInteger() |
Inicializa uma nova instância da SoapNegativeInteger classe. |
| SoapNegativeInteger(Decimal) |
Inicializa uma nova instância da SoapNegativeInteger classe com um Decimal valor. |
Propriedades
| Name | Description |
|---|---|
| Value |
Obtém ou define o valor numérico da instância atual. |
| XsdType |
Obtém a linguagem de definição XML Schema (XSD) do tipo SOAP atual. |
Métodos
| Name | Description |
|---|---|
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual. (Herdado de Object) |
| GetHashCode() |
Serve como função de hash predefinida. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual. (Herdado de Object) |
| GetXsdType() |
Devolve a linguagem de definição XML Schema (XSD) do tipo SOAP atual. |
| MemberwiseClone() |
Cria uma cópia superficial do atual Object. (Herdado de Object) |
| Parse(String) |
Converte o especificado String num SoapNegativeInteger objeto. |
| ToString() |