Share 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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ResourcesAttribute("ContentLinkLiteral", "Advanced", "ContentLink")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ContentLink As String
    Get
    Set
'Usage
Dim instance As PageViewerWebPart
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
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