MemoryCacheSettingsCollection.IndexOf Method (MemoryCacheElement)

.NET Framework (current version)
 

Gets the index of the specified cache configuration element in the MemoryCacheSettingsCollection collection.

Namespace:   System.Runtime.Caching.Configuration
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

public int IndexOf(
	MemoryCacheElement cache
)

Parameters

cache
Type: System.Runtime.Caching.Configuration.MemoryCacheElement

The cache configuration element to get the index for.

Return Value

Type: System.Int32

The index of the memory cache configuration element.

.NET Framework
Available since 4.0
Return to top
Show: