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
- value
Type: System.Object
The object representing the JsonPrimitive.
- result
Type: System.Json.JsonPrimitive%
Contains the constructed JsonPrimitive.
Return Value
Type: System.Boolean
True if the JsonPrimitive was successfully created; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.