ResourceNamesCache.GetOrAdd 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.
Adds a set of resource names to the cache by using the specified function, if the name does not already exist.
public:
virtual System::Collections::Generic::IList<System::String ^> ^ GetOrAdd(System::String ^ name, Func<System::String ^, System::Collections::Generic::IList<System::String ^> ^> ^ valueFactory);
public System.Collections.Generic.IList<string>? GetOrAdd (string name, Func<string,System.Collections.Generic.IList<string>?> valueFactory);
abstract member GetOrAdd : string * Func<string, System.Collections.Generic.IList<string>> -> System.Collections.Generic.IList<string>
override this.GetOrAdd : string * Func<string, System.Collections.Generic.IList<string>> -> System.Collections.Generic.IList<string>
Public Function GetOrAdd (name As String, valueFactory As Func(Of String, IList(Of String))) As IList(Of String)
Parameters
- name
- String
The resource name to add string names for.
The function used to generate the string names for the resource.
Returns
A list containing the string names for the resource.
Implements
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.