AppBuilderUseExtensions.Use<T> Method (IAppBuilder, Object[])

Namespace:  Owin
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)


<ExtensionAttribute> _
Public Shared Function Use(Of T) ( _
    app As IAppBuilder, _
    ParamArray args As Object() _
) As IAppBuilder
Dim app As IAppBuilder 
Dim args As Object()
Dim returnValue As IAppBuilder 

returnValue = app.Use(args)
public static IAppBuilder Use<T>(
    this IAppBuilder app,
    params Object[] args
generic<typename T>
static IAppBuilder^ Use(
    IAppBuilder^ app, 
    ... array<Object^>^ args
static member Use : 
        app:IAppBuilder * 
        args:Object[] -> IAppBuilder
JScript does not support generic types and methods.

Type Parameters

  • T
    The middleware type


  • app
    Type: IAppBuilder
  • args
    Type: System.Object[]
    Any additional arguments for the middleware constructor

Return Value

Type: IAppBuilder

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see or

See Also


AppBuilderUseExtensions Class

Use Overload

Owin Namespace