共用方式為


SPForm.ServerRelativeUrl Property

Gets the server-relative URL of the form.

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

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.ServerRelativeUrl)> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotEmpty)> _
Public ReadOnly Property ServerRelativeUrl As String
    Get
'Usage
Dim instance As SPForm
Dim value As String

value = instance.ServerRelativeUrl
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.ServerRelativeUrl)]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotEmpty)]
public string ServerRelativeUrl { get; }

Property Value

Type: System.String
A string containing the server-relative URL.

See Also

Reference

SPForm Class

SPForm Members

Microsoft.SharePoint Namespace