ManagedLinkAttribute Class

Represents an attribute that is specified on properties containing URLs that should participate in link fixup.


Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class ManagedLinkAttribute : Attribute

Used to indicate a Web Part property that can contain one or more links to files that may be on a server farm. If the farm files are moved or renamed, the link fixup should point to the new location. This attribute can be specified on properties of type String or URI, or it can implement the IList interface, in which case any String or URI entries in the list will be treated as a link that should participate in link fixup.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.