WebOperationContext.CreateJsonResponse<T> Method (T)

.NET Framework (current version)
 

Creates a JSON formatted message.

Namespace:   System.ServiceModel.Web
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

public Message CreateJsonResponse<T>(
	T instance
)

Parameters

instance
Type: T

The object to write to the message.

Return Value

Type: System.ServiceModel.Channels.Message

A JSON formatted message.

Type Parameters

T

The type of object to write to the message.

.NET Framework
Available since 4.0
Return to top
Show: