ContentEditorWebPart.ContentLink property
取得或設定此 Web 組件提供內容的 URL。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ResourcesAttribute("ContentLinkLiteral", "Advanced", "ContentLink")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ContentLink As String
Get
Set
'用途
Dim instance As ContentEditorWebPart
Dim value As String
value = instance.ContentLink
instance.ContentLink = value
[ResourcesAttribute("ContentLinkLiteral", "Advanced", "ContentLink")]
[WebPartStorageAttribute(Storage.Shared)]
public string ContentLink { get; set; }
Property value
Type: System.String
String此 Web 組件提供內容的 URL
備註
ContentLink屬性是讀取/寫入。使用這個屬性來指示的位置的網頁組件,請取得此 Web 組件的內容。URL 可指向任何網址。不過,它必須包含的通訊協定"http://"或"https://"才能正常運作。例如,"http://www.domain.com"或者"https://www.domain.com"。
如果ContentLink URL 所指向的點在 Windows SharePoint Services Web 站台外部站台需要驗證,則該網站必須是隔離。這種情況下,建議您使用PageViewerWebPart ,而不是ContentEditorWebPart。PageViewerWebPart呈現 IFrame 內的內容。IFrames,與安全性提示,就會發生在用戶端,讓目標使用者新增至指定的使用者名稱和密碼。
如果ContentLink失敗或逾時,會顯示內嵌的內容。
這個屬性是一個AllUser屬性 (例如Storage.Shared)。