StringToXmlDataProviderConverter.Convert(String, Object, CultureInfo) Method

Definition

Converts an XML string to an XmlDataProvider.

protected:
 override System::Windows::Data::XmlDataProvider ^ Convert(System::String ^ xmlBlob, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
protected override System.Windows.Data.XmlDataProvider Convert (string xmlBlob, object parameter, System.Globalization.CultureInfo culture);
override this.Convert : string * obj * System.Globalization.CultureInfo -> System.Windows.Data.XmlDataProvider
Protected Overrides Function Convert (xmlBlob As String, parameter As Object, culture As CultureInfo) As XmlDataProvider

Parameters

xmlBlob
String

The XML string.

parameter
Object

The conversion parameter. Unused.

culture
CultureInfo

The culture.

Returns

An XmlDataProvider. If the string is null or empty, or the XML is not valid, the data provider is empty.

Applies to