Partager via


PageViewerWebPart.ContentLink Property

Gets or sets a URL or file path that provides content for this Web Part.

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

Syntax

<WebPartStorageAttribute(Storage.Shared)> _
<ResourcesAttribute("ContentLinkLiteral", "Advanced", "ContentLink")> _
Public Property ContentLink As String
    Get
    Set

Dim instance As PageViewerWebPart
Dim value As String

value = instance.ContentLink

instance.ContentLink = value
[WebPartStorageAttribute(Storage.Shared)]
[ResourcesAttribute("ContentLinkLiteral", "Advanced", "ContentLink")]
public string ContentLink { get; set; }

Property Value

Type: System.String
A string that contains the URL or file path that provides content for this Web Part.

Remarks

The ContentLink property is read/write. Use this property to indicate the location from which the Web Part Page obtains the content for this Web Part.

See Also

Reference

PageViewerWebPart Class

PageViewerWebPart Members

Microsoft.SharePoint.WebPartPages Namespace