SilverlightWebPart.CustomProperties property
取得或設定 Silverlight 應用程式會儲存在網頁組件,以供重複使用的自訂屬性。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<WebBrowsableAttribute(False)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
Public Property CustomProperties As String
Get
Set
'用途
Dim instance As SilverlightWebPart
Dim value As String
value = instance.CustomProperties
instance.CustomProperties = value
[WebBrowsableAttribute(false)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
public string CustomProperties { get; set; }
Property value
Type: System.String
以逗號分隔清單的索引鍵/值配對模式 」key=value"
備註
這個屬性是寫入,而且讀取,程式碼使用 Silverlight 用戶端物件模型的開發。Silverlight 應用程式可以使用屬性來將會重複使用的資訊儲存於後續的引動過程。例如,應用程式可以提示使用者指定他或她的郵遞區號,然後將儲存在這個屬性的 (郵遞區號 = 4 G 5 789)。下次使用者開啟頁面與 Silverlight 網頁組件中,應用程式可以自動讀取和使用這項資訊。
對照CustomInitParameters屬性與這個屬性的使用和外部應用程式的 XML 的自訂摘要資訊項目。每三種都有不同的用途。