PageViewerWebPart.ContentLink 属性
获取或设置为此 Web 部件提供内容的 URL 或文件路径。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ResourcesAttribute("ContentLinkLiteral", "Advanced", "ContentLink")> _
<RequiresDesignerPermissionAttribute> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ContentLink As String
Get
Set
用法
Dim instance As PageViewerWebPart
Dim value As String
value = instance.ContentLink
instance.ContentLink = value
[ResourcesAttribute("ContentLinkLiteral", "Advanced", "ContentLink")]
[RequiresDesignerPermissionAttribute]
[WebPartStorageAttribute(Storage.Shared)]
public string ContentLink { get; set; }
属性值
类型:System.String
一个字符串,包含此 Web 部件提供内容的 URL 或文件路径。
备注
ContentLink属性是可读写。使用此属性来指示从该 Web 部件页获取内容此 Web 部件的位置。