Ajusta un tipo
base64Binary XSD.
Espacio de nombres: System.Runtime.Remoting.Metadata.W3cXsd2001
Ensamblado: mscorlib (en mscorlib.dll)
Visual Basic (Declaración)
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public NotInheritable Class SoapBase64Binary
Implements ISoapXsd
Dim instance As SoapBase64Binary
[SerializableAttribute]
[ComVisibleAttribute(true)]
public sealed class SoapBase64Binary : ISoapXsd
[SerializableAttribute]
[ComVisibleAttribute(true)]
public ref class SoapBase64Binary sealed : ISoapXsd
/** @attribute SerializableAttribute() */
/** @attribute ComVisibleAttribute(true) */
public final class SoapBase64Binary implements ISoapXsd
SerializableAttribute
ComVisibleAttribute(true)
public final class SoapBase64Binary implements ISoapXsd
Para obtener más información sobre los tipos de datos XSD, vea "XML Data Types Reference" en MSDN Library, en http://msdn.microsoft.com/library/spa.
En el siguiente ejemplo de código se muestra cómo se utilizan los miembros de la clase SoapBase64Binary para convertir un objeto SoapBase64Binary en una cadena base64Binary XSD, y viceversa.
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);
}
}
#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 );
}
import System.*;
import 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.get_Value().get_Length(); ++i) {
Console.Write(" " + base64Binary.get_Value().get_Item(i));
}
Console.WriteLine();
// Print the XSD type string of the SoapBase64Binary class.
Console.WriteLine("The XSD type of the class SoapBase64Binary "
+ "is {0}.", SoapBase64Binary.get_XsdType());
} //main
} //Demo
System.Object
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapBase64Binary
Seguridad para subprocesos
Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.
Windows 98, Windows 2000 SP4, Windows Millennium, Windows Server 2003, Windows XP Media Center, Windows XP Professional x64, Windows XP SP2, Windows XP Starter Edition
.NET Framework no admite todas las versiones de cada plataforma. Para obtener una lista de las versiones admitidas, vea Requisitos del sistema.
.NET Framework
Compatible con: 2.0, 1.1, 1.0