ActivityXamlServices.CreateFactory 方法
定义
重载
| CreateFactory(XamlReader, Type) |
为指定 XAML 使用指定类型的返回值返回委托方法。Returns a delegate method for the specified XAML reader with return value of specified type. |
| CreateFactory<T>(XamlReader) |
为指定 XAML 使用指定类型的返回值返回委托方法。Returns a delegate method for the specified XAML reader with return value of specified type. |
CreateFactory(XamlReader, Type)
为指定 XAML 使用指定类型的返回值返回委托方法。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)
参数
- reader
- XamlReader
XAML 读取器。The XAML reader.
- resultType
- Type
此委托封装的方法的返回值类型。The type of the return value of the method that this delegate encapsulates.
返回
具有指定类型返回值的指定的 XAML 读取器的委托方法。A delegate method for the specified XAML reader with return value of specified type.
适用于
CreateFactory<T>(XamlReader)
为指定 XAML 使用指定类型的返回值返回委托方法。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)
类型参数
- T
此委托封装的方法的返回值类型。The type of the return value of the method that this delegate encapsulates.
参数
- reader
- XamlReader
XAML 读取器。The XAML reader.
返回
- Func<T>
具有 T 类型返回值的指定的 XAML 读取器的委托方法。A delegate method for the specified XAML reader with return value of type T.