PSUtility.SerializeObjectToJson<T> Method
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 SerializeObjectToJson(Of T) ( _
obj As T, _
knownTypes As IEnumerable(Of Type) _
) As String
'Usage
Dim obj As T
Dim knownTypes As IEnumerable(Of Type)
Dim returnValue As String
returnValue = PSUtility.SerializeObjectToJson(obj, _
knownTypes)
public static string SerializeObjectToJson<T>(
T obj,
IEnumerable<Type> knownTypes
)
Type Parameters
- T
Parameters
- obj
Type: T
- knownTypes
Type: System.Collections.Generic.IEnumerable<Type>
Return Value
Type: System.String
Returns String.