Share via


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

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, _
    type As Type _
) As Boolean
'Usage
Dim json As String
Dim knownTypes As IEnumerable(Of Type)
Dim createdObject As T
Dim type As Type
Dim returnValue As Boolean

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

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