SoapBase64Binary.Parse(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
isnull
.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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for