InMemoryStorage<T>.Clear 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.
Overloads
Clear() |
Clears all items stored in memory |
Clear(TimeSpan) |
Clears items stored in memory based on duration passed |
Clear()
Clears all items stored in memory
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()
Applies to
Clear(TimeSpan)
Clears items stored in memory based on duration passed
public void Clear (TimeSpan duration);
member this.Clear : TimeSpan -> unit
Public Sub Clear (duration As TimeSpan)
Parameters
- duration
- TimeSpan
TimeSpan to identify expired items