VintaSoft Imaging .NET SDK 10.1
Vintasoft.Imaging.Pdf.Tree Namespace / PdfNamedDictionaryBase<T> Class / TryGetValue Method
The name whose value to get.
When this method returns, the value associated with the specified name, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.



In This Topic
    TryGetValue Method (PdfNamedDictionaryBase<T>)
    In This Topic
    Gets the value associated with the specified name.
    Syntax
    'Declaration
     
    Public Function TryGetValue( _
       ByVal name As String, _
       ByRef value As T _
    ) As Boolean
    public bool TryGetValue( 
       string name,
       out T value
    )
    public: bool TryGetValue( 
       string* name,
       [PARAMFLAG::Out] T* value
    ) 
    public:
    bool TryGetValue( 
       String^ name,
       [Out] T^ value
    ) 

    Parameters

    name
    The name whose value to get.
    value
    When this method returns, the value associated with the specified name, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

    Return Value

    true if the object contains an element with the specified name; otherwise, false.
    Requirements

    Target Platforms: .NET 5; .NET Core 3.1; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also