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
- json
Type: System.String
- knownTypes
Type: System.Collections.Generic.IEnumerable<Type>
- createdObject
Type: T
- type
Type: System.Type
Return Value
Type: System.Boolean
Returns Boolean.