Share via


ConnectionExtensions.JsonSerializeObject Method

.NET Framework 4.5

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function JsonSerializeObject ( _
    connection As IConnection, _
    value As Object _
) As String
'Usage
Dim connection As IConnection 
Dim value As Object 
Dim returnValue As String 

returnValue = connection.JsonSerializeObject(value)
public static string JsonSerializeObject(
    this IConnection connection,
    Object value
)
[ExtensionAttribute]
public:
static String^ JsonSerializeObject(
    IConnection^ connection, 
    Object^ value
)
static member JsonSerializeObject : 
        connection:IConnection * 
        value:Object -> string
public static function JsonSerializeObject(
    connection : IConnection, 
    value : Object
) : String

Parameters

Return Value

Type: System.String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IConnection. 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.118) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.118).

See Also

Reference

ConnectionExtensions Class

Microsoft.AspNet.SignalR.Client Namespace