Share via


WebPart.SiteUrl property

Gets a SpWeb object by calling the GetContextWeb() method.

Namespace:  Microsoft.Office.Server.WebControls.Charting
Assembly:  Microsoft.Office.Server.Chart (in Microsoft.Office.Server.Chart.dll)

Syntax

'Declaration
Public ReadOnly Property SiteUrl As String
    Get
'Usage
Dim instance As WebPart
Dim value As String

value = instance.SiteUrl
public string SiteUrl { get; }

Property value

Type: System.String
The String object that represents the Url property, which is the absolute URL for the Web site.

See also

Reference

WebPart class

WebPart members

Microsoft.Office.Server.WebControls.Charting namespace