共用方式為


SPField.DefaultValue property

取得或設定欄位的預設值。

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

Syntax

'宣告
Public Overridable Property DefaultValue As String
    Get
    Set
'用途
Dim instance As SPField
Dim value As String

value = instance.DefaultValue

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

Property value

Type: System.String
內含的預設值的字串。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace