共用方式為


SPView.RenderAsHtml method (Boolean, Boolean, String)

傳回以 HTML 格式的檢視,但允許的框架組中的呈現。

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

Syntax

'宣告
Public Function RenderAsHtml ( _
    bInFrameset As Boolean, _
    bIncludeNewItem As Boolean, _
    strSourceAbsoluteUrl As String _
) As String
'用途
Dim instance As SPView
Dim bInFrameset As Boolean
Dim bIncludeNewItem As Boolean
Dim strSourceAbsoluteUrl As String
Dim returnValue As String

returnValue = instance.RenderAsHtml(bInFrameset, _
    bIncludeNewItem, strSourceAbsoluteUrl)
public string RenderAsHtml(
    bool bInFrameset,
    bool bIncludeNewItem,
    string strSourceAbsoluteUrl
)

參數

  • bInFrameset
    Type: System.Boolean

    若要指定檢視是框架組 ; 中的true 否則, false.

  • bIncludeNewItem
    Type: System.Boolean

    若要顯示新清單項目] 按鈕 ; true 否則, false.

  • strSourceAbsoluteUrl
    Type: System.String

    字串,包含在表單中的站台相對於清單檢視 URL"列出 /List_Name/View_File_Name.aspx 」。

傳回值

Type: System.String
字串,包含以 HTML 格式檢視。

備註

如果bInFrameset參數和bIncludeNewItem參數設定為true,然後類似下列的清單 Url 會包含在排序 Url:

&ListUrl=%2fTestWeb1%2fLists%2fTestCustList2%2fAllItems%2easpx&
   IncludeNewItem=True&Source=Lists%2fTestCustList2%2fview1%2easpx

請參閱

參照

SPView class

SPView members

RenderAsHtml overload

Microsoft.SharePoint namespace