Compartilhar via


SPQuery.AutoHyperlink Property

Gets or sets a Boolean value that specifies whether text that resembles a hyperlink within the data set returned by the query is automatically formatted as a hyperlink.

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

Syntax

'Declaration
Public Property AutoHyperlink As Boolean
    Get
    Set
'Usage
Dim instance As SPQuery
Dim value As Boolean

value = instance.AutoHyperlink

instance.AutoHyperlink = value
public bool AutoHyperlink { get; set; }

Property Value

Type: System.Boolean
true if text that resembles a hyperlink is automatically formatted as a hyperlink; otherwise, false.

Remarks

If the AutoHyperlink property is set to true and the body of the returned data set contains a URL such as https://Server_Name, the URL is formatted as <a href='https://Server_Name'>https://Server_Name</a>. The default value is false.

See Also

Reference

SPQuery Class

SPQuery Members

Microsoft.SharePoint Namespace