Jaa


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)

Syntax

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

Parameters

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