Condividi tramite


SPFileVersion.Url Property

Gets the relative URL of the file version based on the URL for the site or subsite.

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

Syntax

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

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

Property Value

Type: System.String
A string that contains the URL.

Remarks

Although the Url property contains a URL to which you can browse, an SPFile object cannot be constructed on the basis of this URL.

See Also

Reference

SPFileVersion Class

SPFileVersion Members

Microsoft.SharePoint Namespace