Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Converts the field type value into object for use in client Display, Edit and New item forms.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Function GetFieldValueForClientRender ( _
item As SPItem, _
mode As SPControlMode _
) As Object
'Usage
Dim instance As SPFieldMultiChoice
Dim item As SPItem
Dim mode As SPControlMode
Dim returnValue As Object
returnValue = instance.GetFieldValueForClientRender(item, _
mode)
public override Object GetFieldValueForClientRender(
SPItem item,
SPControlMode mode
)
Parameters
item
Type: Microsoft.SharePoint.SPItemAn object containing a value of for this type of field.
mode
Type: Microsoft.SharePoint.WebControls.SPControlModeA value that specifies whether the returned object should be suitable for the Display form, or Edit form, or New form.
Return value
Type: System.Object
An object containing a representation of the field value used for client rendering in the form designated by mode.
Remarks
This override returns a string as indicated in the following table.
Mode |
String returned |
---|---|
Display |
A comma-delimited string of the values. |
Edit |
The raw ';#'-delimited string of the values |
New |
The default value of the field as a string. |