SPFieldCalculated.OutputType Property
Gets or sets how values are formatted in the field.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableConstraintAttribute(FixedId := "a", Type := ClientCallableConstraintType.ConditionalExpressionTrue, _
Expression := "{0} == FieldType.Text || {0} == FieldType.Number || {0} == FieldType.Integer || {0} == FieldType.Currency || {0} == FieldType.Boolean || {0} == FieldType.DateTime", _
Value := "It MUST be FieldType.Text or FieldType.Number or FieldType.Integer or FieldType.Currency or FieldType.Boolean or FieldType.DateTime")> _
<ClientCallableAttribute> _
Public Property OutputType As SPFieldType
Get
Set
'Usage
Dim instance As SPFieldCalculated
Dim value As SPFieldType
value = instance.OutputType
instance.OutputType = value
[ClientCallableConstraintAttribute(FixedId = "a", Type = ClientCallableConstraintType.ConditionalExpressionTrue,
Expression = "{0} == FieldType.Text || {0} == FieldType.Number || {0} == FieldType.Integer || {0} == FieldType.Currency || {0} == FieldType.Boolean || {0} == FieldType.DateTime",
Value = "It MUST be FieldType.Text or FieldType.Number or FieldType.Integer or FieldType.Currency or FieldType.Boolean or FieldType.DateTime")]
[ClientCallableAttribute]
public SPFieldType OutputType { get; set; }
Property Value
Type: Microsoft.SharePoint.SPFieldType
A Microsoft.SharePoint.SPFieldType value that specifies how values are formatted.