共用方式為


ListViewWebPart.ShouldSerializeWebId method

表示是否應該保存的WebId屬性。

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

Syntax

'宣告
Public Function ShouldSerializeWebId As Boolean
'用途
Dim instance As ListViewWebPart
Dim returnValue As Boolean

returnValue = instance.ShouldSerializeWebId()
public bool ShouldSerializeWebId()

傳回值

Type: System.Boolean
true如果屬性值已變更其預設值 ;否則, false。

備註

因為WebId屬性並沒有簡單的預設值,將提供這個ShouldSerialize方法。這個方法會指示屬性是否已變更其預設值。如果您開發ListViewWebPart的設計工具或開發您自己加入ListViewWebPart的控制項,您通常叫用這個方法。

如果SerializeAll屬性是true或WebId的值不是Empty,這個方法會傳回true 。

請參閱

參照

ListViewWebPart class

ListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace