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

 

Updated: January 15, 2016

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
)

Parameters

obj
Type: System.Object

Type: Object.

knownTypes
Type: System.Collections.Generic.IEnumerable<Type>

Type: IEnumerable<Type>.

obj
Type: System.Object

Type: Object.

knownTypes
Type: System.Collections.Generic.IEnumerable<Type>

Type: IEnumerable<Type>.

Return Value

Type: System.String

Type: String
.

Return to top

© 2017 Microsoft. All rights reserved. Copyright

Show: