SoapBase64Binary.Parse(String) Método
Definição
Converte o String especificado em um objeto SoapBase64Binary.Converts the specified String into a SoapBase64Binary object.
public:
static System::Runtime::Remoting::Metadata::W3cXsd2001::SoapBase64Binary ^ Parse(System::String ^ value);
public static System.Runtime.Remoting.Metadata.W3cXsd2001.SoapBase64Binary Parse (string value);
static member Parse : string -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapBase64Binary
Public Shared Function Parse (value As String) As SoapBase64Binary
Parâmetros
- value
- String
O String a ser convertido.The String to convert.
Retornos
Um objeto SoapBase64Binary que é obtido de value.A SoapBase64Binary object that is obtained from value.
Exceções
Um dos seguintes:One of the following:
value é null.value is null.
- O tamanho de value é menor que 4.- The length of value is less than 4.
- O tamanho de value não é um múltiplo de 4.- The length of value is not a multiple of 4.
Exemplos
O exemplo de código a seguir mostra como usar o método Parse.The following code example shows how to use the Parse method. Este exemplo de código faz parte de um exemplo maior que é fornecido para a SoapBase64Binary classe.This code example is part of a larger example that is provided for the SoapBase64Binary class.
// 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 );
// 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);