SPFile.SetHtmlTranslateCacheItem Method

Saves the contents of the file into a cache for HTML translation.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub SetHtmlTranslateCacheItem ( _
    strTranslatedName As String, _
    jobType As Integer, _
    fMainThicketFile As Boolean, _
    rgbFileContents As Byte() _
)
'Usage
Dim instance As SPFile
Dim strTranslatedName As String
Dim jobType As Integer
Dim fMainThicketFile As Boolean
Dim rgbFileContents As Byte()

instance.SetHtmlTranslateCacheItem(strTranslatedName, _
    jobType, fMainThicketFile, rgbFileContents)
public void SetHtmlTranslateCacheItem(
    string strTranslatedName,
    int jobType,
    bool fMainThicketFile,
    byte[] rgbFileContents
)

Parameters

  • strTranslatedName
    Type: System.String

    The name of the file in the cache after it is translated.

  • jobType
    Type: System.Int32

    A value to identify the type of translation (for example, the version of Internet Explorer for which the file is converted).

  • fMainThicketFile
    Type: System.Boolean

    true to specify that the file is the first item that is returned when any cache item related to the file is requested; otherwise, false.

  • rgbFileContents
    Type: []

    The binary contents of the file to store for the cache item.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace