Επεξεργασία

Κοινή χρήση μέσω


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 * 'T -> bool
override this.TryGetValue : string * bool * 'T -> bool
Public Overridable Function TryGetValue (identity As String, ignoreCase As Boolean, ByRef item As T) As Boolean

Parameters

identity
String

The identity of the item to be searched for.

ignoreCase
Boolean

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

item
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