RenderOptions.GetCacheInvalidationThresholdMaximum(DependencyObject) 메서드

정의

지정된 종속성 개체에 대한 CacheInvalidationThresholdMaximum 연결된 속성의 값을 반환합니다.Returns the value of the CacheInvalidationThresholdMaximum attached property for a specified dependency object.

public:
 static double GetCacheInvalidationThresholdMaximum(System::Windows::DependencyObject ^ target);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.Media.TileBrush))]
public static double GetCacheInvalidationThresholdMaximum (System.Windows.DependencyObject target);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.Media.TileBrush))>]
static member GetCacheInvalidationThresholdMaximum : System.Windows.DependencyObject -> double
Public Shared Function GetCacheInvalidationThresholdMaximum (target As DependencyObject) As Double

매개 변수

target
DependencyObject

CacheInvalidationThresholdMaximum 연결된 속성의 값을 검색할 종속성 개체입니다.The dependency object from which to retrieve the value of the CacheInvalidationThresholdMaximum attached property.

반환

Double

지정된 종속성 개체에 대한 CacheInvalidationThresholdMaximum 연결 속성의 현재 값입니다.The current value of the CacheInvalidationThresholdMaximum attached property on the specified dependency object.

특성

예외

지정된 targetnull입니다.The specified target is null.

예제

다음 예제에서는에 대 한 캐싱 힌트 값을 검색 하는 방법을 보여 줍니다 DrawingBrush .The following example shows how to retrieve the caching hint values for a DrawingBrush.

// Get the caching hint option for the brush.
CachingHint cachingHint = RenderOptions.GetCachingHint(drawingBrush);

if (cachingHint == CachingHint.Cache)
{
    // Get the minimum and maximum relative sizes for regenerating the tiled brush.
    double minimum = RenderOptions.GetCacheInvalidationThresholdMinimum(drawingBrush);
    double maximum = RenderOptions.GetCacheInvalidationThresholdMaximum(drawingBrush);

    // Perform action based on cache values...
}
' Get the caching hint option for the brush.
Dim cachingHintOpt As CachingHint = RenderOptions.GetCachingHint(drawingBrush)

If cachingHintOpt = CachingHint.Cache Then
    ' Get the minimum and maximum relative sizes for regenerating the tiled brush.
    Dim minimum As Double = RenderOptions.GetCacheInvalidationThresholdMinimum(drawingBrush)
    Dim maximum As Double = RenderOptions.GetCacheInvalidationThresholdMaximum(drawingBrush)

    ' Perform action based on cache values...
End If

적용 대상

추가 정보