JsonPrimitive.TryCreate Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a new JsonPrimitive using the specified object instance.

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)

Syntax

'Declaration
Public Shared Function TryCreate ( _
    value As Object, _
    <OutAttribute> ByRef result As JsonPrimitive _
) As Boolean
public static bool TryCreate(
    Object value,
    out JsonPrimitive result
)
public:
static bool TryCreate(
    Object^ value, 
    [OutAttribute] JsonPrimitive^% result
)
static member TryCreate : 
        value:Object * 
        result:JsonPrimitive byref -> bool 
public static function TryCreate(
    value : Object, 
    result : JsonPrimitive
) : boolean

Parameters

Return Value

Type: System.Boolean
True if the JsonPrimitive was successfully created; otherwise, false.

.NET Framework Security

See Also

Reference

JsonPrimitive Class

System.Json Namespace