編集

次の方法で共有


XamlTypeName.ParseList(String, IXamlNamespaceResolver) Method

Definition

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