Partager via


CallSiteBinder.CacheTarget<T> Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Adds a target to the cache of known targets. The cached targets will be scanned before calling BindDelegate to produce the new rule.

Namespace:  System.Runtime.CompilerServices
Assembly:  System.Core (in System.Core.dll)

Syntax

'Declaration
Protected Sub CacheTarget(Of T As Class) ( _
    target As T _
)
protected void CacheTarget<T>(
    T target
)
where T : class

Type Parameters

  • T
    The type of target being added.

Parameters

  • target
    Type: T
    The target delegate to be added to the cache.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.