Share via


PersistentConnectionFactory.CreateInstance Method

.NET Framework 4

Creates an instance of the specified type using the dependency resolver or the type's default constructor.

Namespace:  Microsoft.AspNet.SignalR.Hosting
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Public Function CreateInstance ( _
    connectionType As Type _
) As PersistentConnection
'Usage
Dim instance As PersistentConnectionFactory 
Dim connectionType As Type 
Dim returnValue As PersistentConnection 

returnValue = instance.CreateInstance(connectionType)
public PersistentConnection CreateInstance(
    Type connectionType
)
public:
PersistentConnection^ CreateInstance(
    Type^ connectionType
)
member CreateInstance : 
        connectionType:Type -> PersistentConnection
public function CreateInstance(
    connectionType : Type
) : PersistentConnection

Parameters

Return Value

Type: Microsoft.AspNet.SignalR.PersistentConnection
An instance of a PersistentConnection .

See Also

Reference

PersistentConnectionFactory Class

Microsoft.AspNet.SignalR.Hosting Namespace