Share via


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: TimeSpan

    The 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

See Also

Reference

AssemblyCacheMonitor Class

Microsoft.VisualStudio.TextTemplating Namespace