SoapBase64Binary 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 base64Binary
.
public ref class SoapBase64Binary sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapBase64Binary : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapBase64Binary : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapBase64Binary = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapBase64Binary = class
interface ISoapXsd
Public NotInheritable Class SoapBase64Binary
Implements ISoapXsd
- Herencia
-
SoapBase64Binary
- Atributos
- Implementaciones
En el ejemplo de código siguiente se muestra cómo usar los miembros de la SoapBase64Binary clase para convertir entre un SoapBase64Binary objeto y una cadena XSD base64Binary
.
#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 SoapBase64Binary object.
// The string "AgMFBws=" is byte[]{ 2, 3, 5, 7, 11 } expressed in
// Base 64 format.
String^ xsdBase64Binary = L"AgMFBws=";
SoapBase64Binary^ base64Binary = SoapBase64Binary::Parse( xsdBase64Binary );
// Print the value of the SoapBase64Binary object in XSD format.
Console::WriteLine( L"The SoapBase64Binary object in XSD format is {0}.",
base64Binary );
// Print the XSD type string of the SoapBase64Binary object.
Console::WriteLine( L"The XSD type of the SoapBase64Binary "
L"object is {0}.", base64Binary->GetXsdType() );
// Print the value of the SoapBase64Binary object.
Console::Write( L"base64Binary.Value contains:" );
for ( int i = 0; i < base64Binary->Value->Length; ++i )
{
Console::Write( L" {0}", base64Binary->Value[ i ] );
}
Console::WriteLine();
// Print the XSD type string of the SoapBase64Binary class.
Console::WriteLine( L"The XSD type of the class SoapBase64Binary "
L"is {0}.", SoapBase64Binary::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 SoapBase64Binary object.
// The string "AgMFBws=" is byte[]{ 2, 3, 5, 7, 11 } expressed in
// Base 64 format.
string xsdBase64Binary = "AgMFBws=";
SoapBase64Binary base64Binary =
SoapBase64Binary.Parse(xsdBase64Binary);
// Print the value of the SoapBase64Binary object in XSD format.
Console.WriteLine("The SoapBase64Binary object in XSD format is {0}.",
base64Binary.ToString());
// Print the XSD type string of the SoapBase64Binary object.
Console.WriteLine("The XSD type of the SoapBase64Binary " +
"object is {0}.", base64Binary.GetXsdType());
// Print the value of the SoapBase64Binary object.
Console.Write("base64Binary.Value contains:");
for (int i = 0 ; i < base64Binary.Value.Length ; ++i)
{
Console.Write(" " + base64Binary.Value[i]);
}
Console.WriteLine();
// Print the XSD type string of the SoapBase64Binary class.
Console.WriteLine("The XSD type of the class SoapBase64Binary " +
"is {0}.",
SoapBase64Binary.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 SoapBase64Binary. |
Soap |
Inicializa una nueva instancia de la clase SoapBase64Binary con la representación binaria de un número de 64 bits. |
Value |
Obtiene o establece la representación binaria de un número de 64 bits. |
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 SoapBase64Binary. |
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: