Share via


SPContext.SetCachedField delegate

實作回呼,以設定快取] 欄位值。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Delegate Sub SetCachedField ( _
    fieldName As String, _
    cachedFieldValue As String _
)
'用途
Dim instance As New SetCachedField(AddressOf HandlerMethod)
public delegate void SetCachedField(
    string fieldName,
    string cachedFieldValue
)

參數

  • fieldName
    Type: System.String

    字串,指定要快取的欄位名稱。

  • cachedFieldValue
    Type: System.String

    字串,指定快取的欄位輸出。這個參數可以包含空字串,如果沒有顯示任何東西。

備註

若要加速非顯示表單頁面上的欄位控制項的呈現,您可以實作快取的值的回呼。基於安全性理由,這個回呼可以用於顯示模式,並無法呼叫的特定欄位的控制項 (例如,安全性修剪清單的 [查詢] 欄位中)。它是最佳的作法,請避免設定回呼草稿版本或簽出的網頁。

請參閱

參照

Microsoft.SharePoint namespace