MemoryCache.Name 属性
定义
获取缓存的名称。Gets the name of the 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
属性值
缓存的名称。The name of the cache.
注解
Name属性返回类的当前实例的名称 MemoryCache 。The Name property returns the name of the current instance of the MemoryCache class. 在使用多个缓存实例的应用程序中,可以使用 Name 属性来帮助区分实例。In an application that uses multiple cache instances, you can use the Name property to help distinguish instances. 有关更多信息,请参见 MemoryCache.MemoryCache(String, NameValueCollection) 方法。For more information, see the MemoryCache.MemoryCache(String, NameValueCollection) method. 默认的基于内存的缓存返回默认名称。The default memory-based cache returns the default name.