Share via


PSUtility.DeserializeObjectFromJson<T> Method (String, IEnumerable<Type>, T)

Reserved for internal use.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
Public Shared Function DeserializeObjectFromJson(Of T) ( _
    json As String, _
    knownTypes As IEnumerable(Of Type), _
    <OutAttribute> ByRef createdObject As T _
) As Boolean
'Usage
Dim json As String
Dim knownTypes As IEnumerable(Of Type)
Dim createdObject As T
Dim returnValue As Boolean

returnValue = PSUtility.DeserializeObjectFromJson(json, _
    knownTypes, createdObject)
public static bool DeserializeObjectFromJson<T>(
    string json,
    IEnumerable<Type> knownTypes,
    out T createdObject
)

Type Parameters

  • T

Parameters

  • createdObject
    Type: T

Return Value

Type: System.Boolean
Returns Boolean.

See Also

Reference

PSUtility Class

PSUtility Members

DeserializeObjectFromJson Overload

Microsoft.Office.Project.Server.Library Namespace