SoapHexBinary Clase

Definición

Ajusta un tipo XSD hexBinary.

public ref class SoapHexBinary sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapHexBinary : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapHexBinary : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapHexBinary = class
    interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapHexBinary = class
    interface ISoapXsd
Public NotInheritable Class SoapHexBinary
Implements ISoapXsd
Herencia
SoapHexBinary
Atributos
Implementaciones

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar los miembros de la SoapHexBinary clase para convertir entre un SoapHexBinary objeto y una cadena XSD hexBinary .

#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 SoapHexBinary object.
   String^ xsdHexBinary = L"3f789ABC";
   SoapHexBinary^ hexBinary = SoapHexBinary::Parse( xsdHexBinary );

   // Print the value of the SoapHexBinary object in XSD format.
   Console::WriteLine( L"The SoapHexBinary object in XSD format is {0}.",
      hexBinary );

   // Print the XSD type string of this particular SoapHexBinary object.
   Console::WriteLine( L"The XSD type of the SoapHexBinary object is {0}.",
      hexBinary->GetXsdType() );

   // Print the value of the SoapHexBinary object.
   Console::Write( L"hexBinary.Value contains:" );
   for ( int i = 0; i < hexBinary->Value->Length; ++i )
   {
      Console::Write( L" {0}", hexBinary->Value[ i ] );

   }
   Console::WriteLine();

   // Print the XSD type string of the SoapHexBinary class.
   Console::WriteLine( L"The XSD type of the class SoapHexBinary is {0}.",
      SoapHexBinary::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 SoapHexBinary object.
        string xsdHexBinary = "3f789ABC";
        SoapHexBinary hexBinary = SoapHexBinary.Parse(xsdHexBinary);

        // Print the value of the SoapHexBinary object in XSD format.
        Console.WriteLine("The SoapHexBinary object in XSD format is {0}.",
            hexBinary.ToString());

        // Print the XSD type string of this particular SoapHexBinary object.
        Console.WriteLine(
            "The XSD type of the SoapHexBinary object is {0}.",
            hexBinary.GetXsdType());

        // Print the value of the SoapHexBinary object.
        Console.Write("hexBinary.Value contains:");
        for (int i = 0 ; i < hexBinary.Value.Length ; ++i)
        {
            Console.Write(" " + hexBinary.Value[i]);
        }
        Console.WriteLine();

        // Print the XSD type string of the SoapHexBinary class.
        Console.WriteLine("The XSD type of the class SoapHexBinary is {0}.",
            SoapHexBinary.XsdType);
    }
}

Comentarios

Para obtener más información sobre los tipos de datos XSD, vea la Referencia de tipos de datos XML.

Constructores

SoapHexBinary()

Inicializa una nueva instancia de la clase SoapHexBinary.

SoapHexBinary(Byte[])

Inicializa una nueva instancia de la clase SoapHexBinary.

Propiedades

Value

Obtiene o establece la representación hexadecimal de un número.

XsdType

Obtiene el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual.

Métodos

Equals(Object)

Determina si el objeto especificado es igual que el objeto actual.

(Heredado de Object)
GetHashCode()

Sirve como la función hash predeterminada.

(Heredado de Object)
GetType()

Obtiene el Type de la instancia actual.

(Heredado de Object)
GetXsdType()

Devuelve el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual.

MemberwiseClone()

Crea una copia superficial del Object actual.

(Heredado de Object)
Parse(String)

Convierte el objeto String especificado en un objeto SoapHexBinary.

ToString()

Devuelve un parámetro Value como clase String.

Se aplica a