SoapHexBinary Clase
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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
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);
}
}
Para obtener más información sobre los tipos de datos XSD, vea la Referencia de tipos de datos XML.
Soap |
Inicializa una nueva instancia de la clase SoapHexBinary. |
Soap |
Inicializa una nueva instancia de la clase SoapHexBinary. |
Value |
Obtiene o establece la representación hexadecimal de un número. |
Xsd |
Obtiene el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual. |
Equals(Object) |
Determina si el objeto especificado es igual que el objeto actual. (Heredado de Object) |
Get |
Sirve como la función hash predeterminada. (Heredado de Object) |
Get |
Obtiene el Type de la instancia actual. (Heredado de Object) |
Get |
Devuelve el lenguaje de definición de esquemas XML (XSD) del tipo SOAP actual. |
Memberwise |
Crea una copia superficial del Object actual. (Heredado de Object) |
Parse(String) |
Convierte el objeto String especificado en un objeto SoapHexBinary. |
To |
Producto | Versiones |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: