Partager via


SPList.DefaultNewFormUrl - Propriété

Gets or sets the URL to the default form for creating new list items.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Property DefaultNewFormUrl As String
    Get
    Set
'Utilisation
Dim instance As SPList
Dim value As String

value = instance.DefaultNewFormUrl

instance.DefaultNewFormUrl = value
public string DefaultNewFormUrl { get; set; }

Valeur de propriété

Type : System.String
When you set the property, use the value of the ServerRelativeUrl property of an SPForm object that is in the collection returned by the Forms property of the list. When you get the property, the string that is returned is the value of the Url property of the SPForm object, which is a Web-relative URL.

Exceptions

Exception Condition
ArgumentNullException

The value set in the property is une référence Null (Rien dans Visual Basic).

SPException

The form cannot be set. Either the new form does not exist or the list does not support the form.

Voir aussi

Référence

SPList classe

SPList - Membres

Microsoft.SharePoint - Espace de noms