Share via


DependencyResolverExtensions.UseSqlServer Method (IDependencyResolver, String)

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR
Assembly:  Microsoft.AspNet.SignalR.SqlServer (in Microsoft.AspNet.SignalR.SqlServer.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function UseSqlServer ( _
    resolver As IDependencyResolver, _
    connectionString As String _
) As IDependencyResolver
'Usage
Dim resolver As IDependencyResolver 
Dim connectionString As String 
Dim returnValue As IDependencyResolver 

returnValue = resolver.UseSqlServer(connectionString)
public static IDependencyResolver UseSqlServer(
    this IDependencyResolver resolver,
    string connectionString
)
[ExtensionAttribute]
public:
static IDependencyResolver^ UseSqlServer(
    IDependencyResolver^ resolver, 
    String^ connectionString
)
static member UseSqlServer : 
        resolver:IDependencyResolver * 
        connectionString:string -> IDependencyResolver
public static function UseSqlServer(
    resolver : IDependencyResolver, 
    connectionString : String
) : IDependencyResolver

Parameters

Return Value

Type: Microsoft.AspNet.SignalR.IDependencyResolver

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDependencyResolver. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).

See Also

Reference

DependencyResolverExtensions Class

UseSqlServer Overload

Microsoft.AspNet.SignalR Namespace