SoapHexBinary Classe
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Inclut dans un wrapper un type hexBinary
XSD.
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
- Héritage
-
SoapHexBinary
- Attributs
- Implémente
L’exemple de code suivant montre comment utiliser les membres de la SoapHexBinary classe pour effectuer une conversion entre un SoapHexBinary objet et une chaîne 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);
}
}
Pour plus d’informations sur les types de données XSD, consultez la référence sur les types de données XML.
Soap |
Initialise une nouvelle instance de la classe SoapHexBinary. |
Soap |
Initialise une nouvelle instance de la classe SoapHexBinary. |
Value |
Obtient ou définit la représentation hexadécimale d'un nombre. |
Xsd |
Obtient le langage XSD (XML Schema Definition) du type SOAP en cours. |
Equals(Object) |
Détermine si l'objet spécifié est égal à l'objet actuel. (Hérité de Object) |
Get |
Fait office de fonction de hachage par défaut. (Hérité de Object) |
Get |
Obtient le Type de l'instance actuelle. (Hérité de Object) |
Get |
Retourne le langage XSD (XML Schema Definition) du type SOAP en cours. |
Memberwise |
Crée une copie superficielle du Object actuel. (Hérité de Object) |
Parse(String) |
Convertit le String spécifié en un objet SoapHexBinary. |
To |
Produit | Versions |
---|---|
.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 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :