Share via


RecurrenceField.Value property

Gets or sets the status of the child check box of the RecurrenceField.

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

Syntax

'Declaration
Public Overrides Property Value As Object
    Get
    Set
'Usage
Dim instance As RecurrenceField
Dim value As Object

value = instance.Value

instance.Value = value
public override Object Value { get; set; }

Property value

Type: System.Object
-1 (cast to a Object) if the child check box is checked, otherwise 0.

Remarks

You can set Value to true or false.

To keep the UI of the control consistent with the actual value of the field, Value should be set with the value of ItemFieldValue, which is the value of the field for the SPFieldRecurrence that has the RecurrenceField as its FieldRenderingControl property. (The default OnLoad method will do this.)

Whenever your code sets Value, it should immediately call UpdateFieldValueInItem to update ItemFieldValue. This ensures that the appropriate value-changed event occurs.

See also

Reference

RecurrenceField class

RecurrenceField members

Microsoft.SharePoint.WebControls namespace