共用方式為


SPWeb.GetFilePersonalizationInformation method

傳回的檔案層級指定的文件做為輸出參數,也會傳回指定文件是否已個人化 Web 組件的值。

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

Syntax

'宣告
Public Sub GetFilePersonalizationInformation ( _
    url As String, _
    <OutAttribute> ByRef hasPersonalizedWebParts As Boolean, _
    <OutAttribute> ByRef fileLevel As SPFileLevel _
)
'用途
Dim instance As SPWeb
Dim url As String
Dim hasPersonalizedWebParts As Boolean
Dim fileLevel As SPFileLevel

instance.GetFilePersonalizationInformation(url, _
    hasPersonalizedWebParts, fileLevel)
public void GetFilePersonalizationInformation(
    string url,
    out bool hasPersonalizedWebParts,
    out SPFileLevel fileLevel
)

參數

  • hasPersonalizedWebParts
    Type: System.Boolean

    true如果文件中包含個人化 Web 組件 ;否則, false。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace