Partager via


SoapBase64Binary Classe

Définition

Inclut dans un wrapper un type base64Binary XSD.

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
Héritage
SoapBase64Binary
Attributs
Implémente

Exemples

L’exemple de code suivant montre comment utiliser les membres de la SoapBase64Binary classe pour effectuer une conversion entre un SoapBase64Binary objet et une chaîne 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);
    }
}

Remarques

Pour plus d’informations sur les types de données XSD, consultez la référence sur les types de données XML.

Constructeurs

SoapBase64Binary()

Initialise une nouvelle instance de la classe SoapBase64Binary.

SoapBase64Binary(Byte[])

Initialise une nouvelle instance de la classe SoapBase64Binary avec la représentation binaire d'un nombre 64 bits.

Propriétés

Value

Obtient ou définit la représentation binaire d'un nombre 64 bits.

XsdType

Obtient le langage XSD (XML Schema Definition) du type SOAP en cours.

Méthodes

Equals(Object)

Détermine si l'objet spécifié est égal à l'objet actuel.

(Hérité de Object)
GetHashCode()

Fait office de fonction de hachage par défaut.

(Hérité de Object)
GetType()

Obtient le Type de l'instance actuelle.

(Hérité de Object)
GetXsdType()

Retourne le langage XSD (XML Schema Definition) du type SOAP en cours.

MemberwiseClone()

Crée une copie superficielle du Object actuel.

(Hérité de Object)
Parse(String)

Convertit le String spécifié en un objet SoapBase64Binary.

ToString()

Retourne une Value comme String.

S’applique à