共用方式為


WebPart.PartImageSmall property

NOTE: This API is now obsolete.

取得或設定的網頁組件標題中出現之圖像檔的 URL。

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

Syntax

'宣告
<WebPartStorageAttribute(Storage.Shared)> _
<ObsoleteAttribute("Use TitleIconImageUrl instead.")> _
<HtmlDesignerAttribute("", HtmlEditorBuilderType := "picture")> _
Public Property PartImageSmall As String
    Get
    Set
'用途
Dim instance As WebPart
Dim value As String

value = instance.PartImageSmall

instance.PartImageSmall = value
[WebPartStorageAttribute(Storage.Shared)]
[ObsoleteAttribute("Use TitleIconImageUrl instead.")]
[HtmlDesignerAttribute("", HtmlEditorBuilderType = "picture")]
public string PartImageSmall { get; set; }

Property value

Type: System.String
影像的 URL。

備註

這個屬性無法依個別使用者個人化。WebPartStorageAttribute其值為Storage.Shared,這會指定屬性會儲存具有相同值的所有使用者。僅限具有寫入網頁] 權限的使用者可以設定這個屬性。以程式設計方式設定,或者它可以設定透過 [網頁組件] 工作窗格,在 [共用] 檢視的 Web 型使用者介面中,或使用SharePoint Foundation– 相容的 HTML 編輯器,例如SharePoint Designer。

請參閱

參照

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace