SoapBase64Binary.Parse(String) Method

Definition

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

Parameters

value
String

The String to convert.

Returns

A SoapBase64Binary object that is obtained from value.

Exceptions

One of the following:

  • value is null.

  • The length of value is less than 4.

  • The length of value is not a multiple of 4.

Examples

The following code example shows how to use the Parse method. 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);

Applies to