Share via


SPContext.SetCachedField 委托

实现回调以设置缓存字段值。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.String

    一个字符串,指定要进行缓存的字段的名称。

  • cachedFieldValue
    类型:System.String

    一个字符串,指定缓存的字段输出。如果没有显示,则此参数可以包含空字符串。

备注

若要加快非显示窗体页面上字段控件的呈现,您可以实现缓存值的回调。出于安全考虑,此回调可以仅显示模式中使用,且不能调用的特定字段控件 (例如,用于向安全修整列表的查阅字段)。它是最佳实践,以避免设置回调草稿版本或签出的页面。

另请参阅

引用

Microsoft.SharePoint 命名空间