ActivatorUtilities.CreateFactory Method
Creates an instance of factory.
Namespace: Microsoft.Owin.Hosting.Services
Assembly: Microsoft.Owin.Hosting (in Microsoft.Owin.Hosting.dll)
Syntax
'Declaration
Public Shared Function CreateFactory ( _
type As Type _
) As Func(Of IServiceProvider, Object)
'Usage
Dim type As Type
Dim returnValue As Func(Of IServiceProvider, Object)
returnValue = ActivatorUtilities.CreateFactory(type)
public static Func<IServiceProvider, Object> CreateFactory(
Type type
)
public:
static Func<IServiceProvider^, Object^>^ CreateFactory(
Type^ type
)
static member CreateFactory :
type:Type -> Func<IServiceProvider, Object>
public static function CreateFactory(
type : Type
) : Func<IServiceProvider, Object>
Parameters
- type
Type: System.Type
The type of the factory.
Return Value
Type: System.Func<IServiceProvider, Object>
The created factory.