ReadOnlyMetadataCollection<T>.TryGetValue(String, Boolean, T) ReadOnlyMetadataCollection<T>.TryGetValue(String, Boolean, T) ReadOnlyMetadataCollection<T>.TryGetValue(String, Boolean, T) ReadOnlyMetadataCollection<T>.TryGetValue(String, Boolean, T) Method

Definition

Retrieves an item from this collection by using the specified identity.

public:
 virtual bool TryGetValue(System::String ^ identity, bool ignoreCase, [Runtime::InteropServices::Out] T % item);
public virtual bool TryGetValue (string identity, bool ignoreCase, out T item);
abstract member TryGetValue : string * bool *  -> bool
override this.TryGetValue : string * bool *  -> bool
Public Overridable Function TryGetValue (identity As String, ignoreCase As Boolean, ByRef item As T) As Boolean

Parameters

identity
String String String String

The identity of the item to be searched for.

ignoreCase
Boolean Boolean Boolean Boolean

true to perform the case-insensitive search; otherwise, false.

item
T T T T

When this method returns, this output parameter contains an item from the collection. If there is no matched item, this output parameter contains null.

Returns

true if there is an item that matches the search criteria; otherwise, false.

Applies to