Condividi tramite


SPList.DefaultViewUrl Property

Gets the URL of the default view for the list.

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

Syntax

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

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

Property Value

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

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace