Επεξεργασία

Κοινή χρήση μέσω


ActivityXamlServices.CreateFactory Method

Definition

Overloads

CreateFactory(XamlReader, Type)

Returns a delegate method for the specified XAML reader with return value of specified type.

CreateFactory<T>(XamlReader)

Returns a delegate method for the specified XAML reader with return value of specified type.

CreateFactory(XamlReader, Type)

Returns a delegate method for the specified XAML reader with return value of specified type.

public:
 static Func<System::Object ^> ^ CreateFactory(System::Xaml::XamlReader ^ reader, Type ^ resultType);
public static Func<object> CreateFactory (System.Xaml.XamlReader reader, Type resultType);
static member CreateFactory : System.Xaml.XamlReader * Type -> Func<obj>
Public Shared Function CreateFactory (reader As XamlReader, resultType As Type) As Func(Of Object)

Parameters

reader
XamlReader

The XAML reader.

resultType
Type

The type of the return value of the method that this delegate encapsulates.

Returns

A delegate method for the specified XAML reader with return value of specified type.

Applies to

CreateFactory<T>(XamlReader)

Returns a delegate method for the specified XAML reader with return value of specified type.

public:
generic <typename T>
 where T : class static Func<T> ^ CreateFactory(System::Xaml::XamlReader ^ reader);
public static Func<T> CreateFactory<T> (System.Xaml.XamlReader reader) where T : class;
static member CreateFactory : System.Xaml.XamlReader -> Func<'T (requires 'T : null)> (requires 'T : null)
Public Shared Function CreateFactory(Of T As Class) (reader As XamlReader) As Func(Of T)

Type Parameters

T

The type of the return value of the method that this delegate encapsulates.

Parameters

reader
XamlReader

The XAML reader.

Returns

Func<T>

A delegate method for the specified XAML reader with return value of type T.

Applies to