StringToXmlDataProviderConverter.Convert Method (String, Object, CultureInfo)
Converts an XML string to an XmlDataProvider.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Protected Overrides Function Convert ( _
xmlBlob As String, _
parameter As Object, _
culture As CultureInfo _
) As XmlDataProvider
protected override XmlDataProvider Convert(
string xmlBlob,
Object parameter,
CultureInfo culture
)
Parameters
- xmlBlob
Type: System.String
The XML string.
- parameter
Type: System.Object
The conversion parameter. Unused.
- culture
Type: System.Globalization.CultureInfo
The culture.
Return Value
Type: System.Windows.Data.XmlDataProvider
An XmlDataProvider. If the string is nulla null reference (Nothing in Visual Basic) or empty, or the XML is not valid, the data provider is empty.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.