共用方式為


WebPart.DetailLink property

NOTE: This API is now obsolete.

取得或設定以 HTML 文件,內含補充資訊的 URL。

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

Syntax

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

value = instance.DetailLink

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

Property value

Type: System.String
string指定頁面的 URL。預設值為String.Empty。

備註

使用DetailLink屬性可連結至網頁組件的詳細資訊。如果您將DetailLink屬性,按一下 [網頁組件的標題瀏覽至您所提供的 URL。

任何目標屬性不設在超連結。在同一個視窗中開啟的目標文件主控網頁組件頁面。若要返回 [網頁組件] 頁面上,您可以提供重新導向程式] 頁面上。

例如,您可以使用這個屬性來建立網頁組件,會公開上方新聞標題。您可以提供瀏覽至新聞網站的首頁上,以顯示所有新聞標題。會顯示股價網頁組件可提供網站的主首頁上,提供其他許多財務服務的連結。

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

請參閱

參照

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace