Class CommonFieldOptions
Available options for adding most of SharePoint fields (Excepted Lookup fields)
Namespace: PnP.Core.Model.SharePoint
Assembly: PnP.Core.dll
Syntax
public abstract class CommonFieldOptions : object
Available options for adding most of SharePoint fields (Excepted Lookup fields)
public abstract class CommonFieldOptions : object
Add this field to the default view
public bool AddToDefaultView { get; set; }
Boolean
|
Allows you to set custom formatting JSON (https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting#supported-column-types) on the field
public string CustomFormatter { get; set; }
String
|
Sets the default formula of the field
public string DefaultFormula { get; set; }
String
|
Sets the description of the field
public string Description { get; set; }
String
|
Sets whether the field enforces unique values
public bool? EnforceUniqueValues { get; set; }
Nullable<Boolean>
|
Sets whether the field is hidden
public bool? Hidden { get; set; }
Nullable<Boolean>
|
Sets whether the field is indexed
public bool? Indexed { get; set; }
Nullable<Boolean>
|
Set a specific internal name for the field
public string InternalName { get; set; }
String
|
An AddFieldOptionsFlags flag that specifies the field options to be applied during add
public AddFieldOptionsFlags Options { get; set; }
AddFieldOptionsFlags
|
Sets whether the field is required
public bool? Required { get; set; }
Nullable<Boolean>
|
Show this field on the list's edit form
public bool? ShowInEditForm { get; set; }
Nullable<Boolean>
|
Show this field on the list's new form
public bool? ShowInNewForm { get; set; }
Nullable<Boolean>
|
Show this field on the list's view forms
public bool? ShowInViewForms { get; set; }
Nullable<Boolean>
|
Sets the validation formula of the field
public string ValidationFormula { get; set; }
String
|
Sets the validation message of the field
public string ValidationMessage { get; set; }
String
|