Compartilhar via


Field.DefaultValue Property

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property DefaultValue As String
    Get
    Set
'Usage
Dim instance As Field
Dim value As String

value = instance.DefaultValue

instance.DefaultValue = value
[RemoteAttribute]
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