AssemblyCacheMonitor.GetStaleAssembliesCount Method
Gets the number of assemblies in the cache that have not been used after a specific length of time.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating.11.0 (in Microsoft.VisualStudio.TextTemplating.11.0.dll)
Syntax
'Declaration
Public Function GetStaleAssembliesCount ( _
assemblyStaleTime As TimeSpan _
) As Integer
public int GetStaleAssembliesCount(
TimeSpan assemblyStaleTime
)
public:
int GetStaleAssembliesCount(
TimeSpan assemblyStaleTime
)
member GetStaleAssembliesCount :
assemblyStaleTime:TimeSpan -> int
public function GetStaleAssembliesCount(
assemblyStaleTime : TimeSpan
) : int
Parameters
assemblyStaleTime
Type: TimeSpanThe length of time that determines whether the cache count includes a particular assembly. The count includes only those assemblies that have not been used for the specified length of time or longer.
Note The time between the last use of the cache and the present time is not counted.
Return Value
Type: Int32
The number of assemblies in the cache that have not been used for a specific length of time.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.