ReadOnlyMetadataCollection<T>.TryGetValue(String, Boolean, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.