LinkFieldValue.IconUrl Property
Gets or sets the URL for the optional icon image that is displayed with this LinkField object.
Namespace: Microsoft.SharePoint.Publishing.Fields
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property IconUrl As String
Get
Set
'Usage
Dim instance As LinkFieldValue
Dim value As String
value = instance.IconUrl
instance.IconUrl = value
public string IconUrl { get; set; }
Property Value
Type: System.String
The URL for an optional icon image or an empty string.
Remarks
Generally, this URL is either left empty or set by using the GetDefaultIconUrl(String) or GetDefaultIconUrl method.
You can set the URL that this property specifies to any URL value that is allowed by OSafe. However, if the URL is recognized as belonging to the SPSite where the data is stored, it is converted to a server-relative URL when you save the value. If the URL points to a file that Microsoft Office SharePoint Server 2007 recognizes, renaming or moving that file causes this URL to reflect the new name or location.
Default is an empty string, which means that the link has no icon image.