CodeCarvings.Piczard
ValidateSerialization(Object,Boolean) Method
See Also  Send Feedback
CodeCarvings.Piczard.Serialization Namespace > JSONSerializer Class > ValidateSerialization Method : ValidateSerialization(Object,Boolean) Method

o
The object to serialize.
throwException
If true, a JSONSerializationException is thrown if the object cannot be serialized.
Determines if it's possible to serialize the specified object; if the "throwException" parameter is true then an JSONSerializationException is thrown if the object cannot be serialized.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function ValidateSerialization( _
   ByVal o As Object, _
   ByVal throwException As Boolean _
) As Boolean
C#  
public static bool ValidateSerialization( 
   object o,
   bool throwException
)

Parameters

o
The object to serialize.
throwException
If true, a JSONSerializationException is thrown if the object cannot be serialized.

Return Value

true if the object can be serialized; otherwise, false.

Exceptions

Exception Description
JSONSerializationException The specified object cannot be serialzied.

Remarks

For more information about JSON serialization please see: JSON Serialization.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.