다음을 통해 공유


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

Return Value

Type: System.String
Returns String.

See Also

Reference

PSUtility Class

PSUtility Members

Microsoft.Office.Project.Server.Library Namespace