ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8.FastProxy
V8FastArgs Structure
V8FastArgs Methods
TryGet Method
TryGet(Int32, Boolean) Method
TryGet(Int32, Byte) Method
TryGet(Int32, Char) Method
TryGet(Int32, DateTime) Method
TryGet(Int32, Decimal) Method
TryGet(Int32, Double) Method
TryGet(Int32, Int16) Method
TryGet(Int32, Int32) Method
TryGet(Int32, Int64) Method
TryGet(Int32, BigInteger) Method
TryGet(Int32, ReadOnlySpan<Char>) Method
TryGet(Int32, SByte) Method
TryGet(Int32, Single) Method
TryGet(Int32, String) Method
TryGet(Int32, UInt16) Method
TryGet(Int32, UInt32) Method
TryGet(Int32, UInt64) Method
TryGet<T>(Int32, T) Method
TryGet<T>(Int32, Nullable<T>) Method

# V8FastArgsTryGet T(Int32, Nullable T) Method

Gets a nullable value of the given underlying type from the argument at the specified index if possible.
Namespace: Microsoft.ClearScript.V8.FastProxy
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public bool TryGet<T>(
    	int index,
    	out T? value
    )
    where T : struct, new()

    Public Function TryGet(Of T As {Structure, New}) (
    	index As Integer,
    	<OutAttribute> ByRef value As T?
    ) As Boolean

    public:
    generic<typename T>
    where T : value class, gcnew()
    bool TryGet(
    	int index,
    	[OutAttribute] Nullable<T>% value
    )

    member TryGet :
            index : int *
            value : Nullable<'T> byref -> bool  when 'T : struct, new()

#### Parameters

index Int32
  The argument index.
value Nullable T
  On return, a nullable value of underlying type T if the operation succeeded.

#### Type Parameters

T
  The underlying type of the nullable value to get.

#### Return Value

Boolean
True if the operation succeeded, false otherwise.
See Also

#### Reference

V8FastArgs Structure
TryGet Overload
Microsoft.ClearScript.V8.FastProxy Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft