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

'Declaration
<ResourcesAttribute("ContentLinkLiteral", "Advanced", "ContentLink")> _
<RequiresDesignerPermissionAttribute> _
<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")]
[RequiresDesignerPermissionAttribute]
[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