IResourceNamesCache.GetOrAdd メソッド

定義

キーがまだ存在しない場合、指定された関数を使用してキャッシュにリソース名セットを追加します。

public:
 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>
Public Function GetOrAdd (name As String, valueFactory As Func(Of String, IList(Of String))) As IList(Of String)

パラメーター

name
String

文字列名を追加するリソース名。

valueFactory
Func<String,IList<String>>

リソースの文字列名を生成するために使用される関数。

戻り値

リソースの文字列名。

適用対象