共用方式為


WebPart.StorageKey property

取得網頁組件新增至網頁組件區域時,會將網頁組件基礎結構來設定的唯一識別碼。

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

Syntax

'宣告
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.None)> _
Public ReadOnly Property StorageKey As Guid
    Get
'用途
Dim instance As WebPart
Dim value As Guid

value = instance.StorageKey
[BrowsableAttribute(false)]
[WebPartStorageAttribute(Storage.None)]
public Guid StorageKey { get; }

Property value

Type: System.Guid
網頁組件新增至WebPartZone控制項,網頁組件基礎結構設定System.Guid值。是 (屬性不會儲存在網頁組件的資料庫資料表的Microsoft SharePoint Foundation ) WebPartZone控制外部網頁組件,此值設為Guid.Empty。

備註

StorageKey屬性無法修改,因為它是網頁組件 infrastructusre 讀取及寫入網頁組件的屬性會使用的唯一識別碼。

請參閱

參照

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace