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 (in Microsoft.VisualStudio.TextTemplating.dll)

Syntax

'宣言
Public Function GetStaleAssembliesCount ( _
    assemblyStaleTime As TimeSpan _
) As Integer
'使用
Dim instance As AssemblyCacheMonitor
Dim assemblyStaleTime As TimeSpan
Dim returnValue As Integer

returnValue = instance.GetStaleAssembliesCount(assemblyStaleTime)
public int GetStaleAssembliesCount(
    TimeSpan assemblyStaleTime
)
public:
int GetStaleAssembliesCount(
    TimeSpan assemblyStaleTime
)
public function GetStaleAssembliesCount(
    assemblyStaleTime : TimeSpan
) : int

Parameters

  • assemblyStaleTime
    Type: System.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: System.Int32

The number of assemblies in the cache that have not been used for a specific length of time.

Permissions

See Also

Reference

AssemblyCacheMonitor Class

AssemblyCacheMonitor Members

Microsoft.VisualStudio.TextTemplating Namespace