Share via


ActivityXamlServices.CreateFactory 方法

定义

重载

CreateFactory(XamlReader, Type)

为指定 XAML 使用指定类型的返回值返回委托方法。

CreateFactory<T>(XamlReader)

为指定 XAML 使用指定类型的返回值返回委托方法。

CreateFactory(XamlReader, Type)

为指定 XAML 使用指定类型的返回值返回委托方法。

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)

参数

reader
XamlReader

XAML 读取器。

resultType
Type

此委托封装的方法的返回值类型。

返回

具有指定类型返回值的指定的 XAML 读取器的委托方法。

适用于

CreateFactory<T>(XamlReader)

为指定 XAML 使用指定类型的返回值返回委托方法。

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)

类型参数

T

此委托封装的方法的返回值类型。

参数

reader
XamlReader

XAML 读取器。

返回

Func<T>

具有 T 类型返回值的指定的 XAML 读取器的委托方法。

适用于