WebPartMobileAdapter.MobilePage property
如果頁面是WebPartMobilePage物件,請取得物件,表示目前的頁面。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Protected ReadOnly Property MobilePage As WebPartMobilePage
Get
'用途
Dim value As WebPartMobilePage
value = Me.MobilePage
protected WebPartMobilePage MobilePage { get; }
Property value
Type: Microsoft.SharePoint.WebPartPages.WebPartMobilePage
WebPartMobilePage ,表示目前的頁面。如果目前的頁面不是型別WebPartMobilePage,這會是a null reference (Nothing in Visual Basic) 。
備註
您可以使用這個屬性來測試目前的頁面是否WebPartMobilePage。