Share via


MemoryCache.Name Proprietà

Definizione

Ottiene il nome della cache.

public:
 virtual property System::String ^ Name { System::String ^ get(); };
public override string Name { get; }
member this.Name : string
Public Overrides ReadOnly Property Name As String

Valore della proprietà

Nome della cache.

Commenti

La Name proprietà restituisce il nome dell'istanza corrente della MemoryCache classe. In un'applicazione che usa più istanze della cache, è possibile usare la Name proprietà per distinguere le istanze. Per altre informazioni, vedere il metodo MemoryCache.MemoryCache(String, NameValueCollection). La cache basata sulla memoria predefinita restituisce il nome predefinito.

Si applica a