XamlTypeName.ParseList(String, IXamlNamespaceResolver) 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.
Provides a XamlTypeName value based on a string that can specify multiple type names, and an object that can resolve a markup prefix into a namespace.
public:
static System::Collections::Generic::IList<System::Xaml::Schema::XamlTypeName ^> ^ ParseList(System::String ^ typeNameList, System::Xaml::IXamlNamespaceResolver ^ namespaceResolver);
public static System.Collections.Generic.IList<System.Xaml.Schema.XamlTypeName> ParseList (string typeNameList, System.Xaml.IXamlNamespaceResolver namespaceResolver);
static member ParseList : string * System.Xaml.IXamlNamespaceResolver -> System.Collections.Generic.IList<System.Xaml.Schema.XamlTypeName>
Public Shared Function ParseList (typeNameList As String, namespaceResolver As IXamlNamespaceResolver) As IList(Of XamlTypeName)
Parameters
- typeNameList
- String
A string that contains multiple types.
- namespaceResolver
- IXamlNamespaceResolver
An object or service provider that implements IXamlNamespaceResolver.
Returns
The created XamlTypeName.
Exceptions
typeNameList
or namespaceResolver
is null
.
String cannot be parsed.
Remarks
The following is quasi-BNF for the nested type name or multiple type name parsing enabled by this method:
NestedTypeName = Name | Name '+' NestedTypeName
TypeName = NestedTypeName | NestedTypeName '[]'
XamlTypeName = Prefix ':' TypeName TypeArgs | TypeName TypeArgs
TypeArgs = empty | '(' XamlTypeNameList ')'
XamlTypeNameList = XamlTypeName XamlTypeNameList1
XamlTypeNameList1 = empty | ',' XamlTypeNameList
Applies to
.NET