Field.DefaultValue property

Gets or sets a value that specifies the default value for the field.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Property DefaultValue As String
    Get
    Set
'Usage
Dim instance As Field
Dim value As String

value = instance.DefaultValue

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

Property value

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.

See also

Reference

Field class

Field members

Microsoft.SharePoint.Client namespace