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
)
參數
url
Type: System.String文件的完整的 URL。
hasPersonalizedWebParts
Type: System.Booleantrue如果文件中包含個人化 Web 組件 ;否則, false。
fileLevel
Type: Microsoft.SharePoint.SPFileLevel指定的檔案層級的SPFileLevel值。