ObjectExtensions.SerializeByJson Method (Object, IEnumerable<Type>)


Applies To: Dynamics CRM 2015

Serialize an object using the DataContractJsonSerializer.

Namespace:   Microsoft.Xrm.Client.Runtime.Serialization
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)


public static string SerializeByJson(
    this object obj,
    IEnumerable<Type> knownTypes
static String^ SerializeByJson(
    Object^ obj,
    IEnumerable<Type^>^ knownTypes
static member SerializeByJson : 
        obj:Object *
        knownTypes:IEnumerable<Type> -> string
Public Shared Function SerializeByJson (
    obj As Object,
    knownTypes As IEnumerable(Of Type)
) As String


Return Value

Type: System.String

Type: String

See Also

ObjectExtensions Class
Microsoft.Xrm.Client.Runtime.Serialization Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright