Field.DefaultValue - Propriété
Gets or sets a value that specifies the default value for the field.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Property DefaultValue As String
Get
Set
'Utilisation
Dim instance As Field
Dim value As String
value = instance.DefaultValue
instance.DefaultValue = value
public string DefaultValue { get; set; }
Valeur de propriété
Type : System.String
Returns a String instance representing the default value for the field.
Exceptions
Exception | Condition |
---|---|
[System.NotSupportedException] | Value is changed, and the list is an external list. Error code: -1. |