Interface IField
Public interface to define a Field object of SharePoint Online
Assembly: PnP.Core.dll
Syntax
public interface IField : IDataModel<IField>, IDataModelParent, IDataModelWithContext, ISupportModules<IField>, IDataModelGet<IField>, IDataModelLoad<IField>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel
Properties
A special property used to add an asterisk to a $select statement
Declaration
Property Value
Gets or sets whether to allow display if the user name
Declaration
bool AllowDisplay { get; set; }
Property Value
Gets or sets a value that specifies whether a hyperlink is allowed as a value of the field.
Declaration
bool AllowHyperlink { get; set; }
Property Value
Gets or sets whether the lookup fields allows multiple values
Declaration
bool AllowMultipleValues { get; set; }
Property Value
Gets or sets the GUID of the anchor Term object for a TaxonomyField
Declaration
Guid AnchorId { get; set; }
Property Value
Gets or sets a value that specifies whether all changes to the value of the field are displayed in list forms.
Declaration
bool AppendOnly { get; set; }
Property Value
Gets or sets a Boolean value that specifies whether the field is auto-indexed
Declaration
bool AutoIndexed { get; set; }
Property Value
Specifies whether or not the field can be deleted
Declaration
bool CanBeDeleted { get; }
Property Value
Gets or sets the choices of choice field
Declaration
string[] Choices { get; set; }
Property Value
Gets or Sets the client side component Id associated with the field
Declaration
Guid ClientSideComponentId { get; set; }
Property Value
Gets or Sets the properties of the client side component associated with the field
Declaration
string ClientSideComponentProperties { get; set; }
Property Value
Gets or Sets the client validation message of the field
Declaration
string ClientValidationMessage { get; set; }
Property Value
Gets or Sets the Locale Id of the currency
Declaration
int CurrencyLocaleId { get; set; }
Property Value
Gets or sets the type of calendar to use of a DateTime field
Declaration
CalendarType DateTimeCalendarType { get; set; }
Property Value
Gets or Sets the default value of the field
Declaration
object DefaultValue { get; set; }
Property Value
Gets the dependent lookup internal names of a lookup field
Declaration
string[] DependentLookupInternalNames { get; }
Property Value
Gets or Sets the description of the field
Declaration
string Description { get; set; }
Property Value
Specifies the direction of the reading order for the field. A string that contains LTR if the reading order is left-to-right,
RTL if it is right-to-left or none
Declaration
string Direction { get; set; }
Property Value
Gets or sets whether the lookup should be enabled for computed field
Declaration
bool EnableLookup { get; set; }
Property Value
Gets or Sets whether the field enforces unique values
Declaration
bool EnforceUniqueValues { get; set; }
Property Value
Gets the name of the entity property for the list item entity that uses this field
Declaration
string EntityPropertyName { get; }
Property Value
Declaration
FieldType FieldTypeKind { get; }
Property Value
Gets or sets whether choice field can be filled in by user
Declaration
bool FillInChoice { get; set; }
Property Value
Returns whether the field can be filtered
Declaration
Property Value
Gets a Boolean value that indicates whether the field derives from a base field type.
Declaration
bool FromBaseType { get; }
Property Value
Gets or Sets the group of the field
Declaration
string Group { get; set; }
Property Value
Specifies whether the field is displayed in the list
Declaration
bool Hidden { get; set; }
Property Value
Provides the id of the field
Declaration
Property Value
Gets or Sets whether the field is indexed
Declaration
bool Indexed { get; set; }
Property Value
Describes whether a field is indexed, and whether the data
in the index is complete
Declaration
FieldIndexStatus IndexStatus { get; }
Property Value
Specifies the internal name of the field
Declaration
string InternalName { get; }
Property Value
Gets a Boolean value that specifies whether the Term object identified by the AnchorId property is valid.
Declaration
bool IsAnchorValid { get; }
Property Value
Check whether a lookup field is a dependent lookup field
Declaration
bool IsDependentLookup { get; }
Property Value
Gets or sets a Boolean value that indicates whether the TaxonomyField value points to the Enterprise Keywords TermSet object.
Declaration
bool IsKeyword { get; set; }
Property Value
Gets or sets a Boolean value that specifies whether the default Label objects of all the parent Term objects of a Term in the TaxonomyField object
will be rendered in addition to the default label of that Term.
Declaration
bool IsPathRendered { get; set; }
Property Value
Specifies whether this Lookup field is discoverable from the List being looked up to
Declaration
bool IsRelationship { get; set; }
Property Value
Gets a Boolean value that specifies whether the TermSet object identified by the TermSetId property exists and is available for tagging.
Declaration
bool IsTermSetValid { get; }
Property Value
Gets or sets the name of an external JS file containing any client rendering logic for fields of this type
Declaration
string JSLink { get; set; }
Property Value
Specifies the name of the Field used as the lookup values
Declaration
string LookupField { get; set; }
Property Value
Specifies the id (GUID) of the List that contains the Field to use as the lookup values
Declaration
string LookupList { get; set; }
Property Value
Specifies the id of the Site that contains the List which contains the
Field used as the lookup values
Declaration
Guid LookupWebId { get; set; }
Property Value
Gets the mappings of a choice field
Declaration
Property Value
Gets or sets the maximum value of a number field
Declaration
double MaximumValue { get; set; }
Property Value
Specifies the maximum number of characters that can be typed in the field
Declaration
int MaxLength { get; set; }
Property Value
Gets or sets the minimum value of a number field
Declaration
double MinimumValue { get; set; }
Property Value
Gets or sets a value that specifies the number of lines of text to display for the field.
Declaration
int NumberOfLines { get; set; }
Property Value
Gets or sets a Boolean value that specifies whether the new Term objects can be added to the TermSet while typing in the TaxonomyField editor control.
Declaration
Property Value
Gets or sets the type of a calculated field output
Declaration
FieldType OutputType { get; set; }
Property Value
Gets or sets whether to display the presence indicator of the user
Declaration
bool Presence { get; set; }
Property Value
Specifies the GUID of the primary lookup field if this is a dependent lookup field. Otherwise, it is empty string
Declaration
string PrimaryFieldId { get; set; }
Property Value
Specifies whether values in the field can be modified
Declaration
bool ReadOnlyField { get; set; }
Property Value
Specifies the Delete Behavior of the Lookup Field
Declaration
RelationshipDeleteBehaviorType RelationshipDeleteBehavior { get; set; }
Property Value
Gets or Sets whether the field is required
Declaration
bool Required { get; set; }
Property Value
Gets or sets a value that specifies whether the field supports a subset of rich formatting.
Declaration
bool RestrictedMode { get; set; }
Property Value
Gets or sets a value that specifies whether the field supports rich formatting.
Declaration
bool RichText { get; set; }
Property Value
Specifies the schema that defines the field
Declaration
string SchemaXml { get; set; }
Property Value
Specifies the ServerRelativeUrl of the of the web site folder in which the field belongs to
Declaration
Property Value
Specifies whether the field can be changed or deleted
Declaration
bool Sealed { get; set; }
Property Value
Gets or sets the Id of the group to which the users to select belong to
Declaration
int SelectionGroup { get; set; }
Property Value
Gets or sets the selection mode of the user field
Declaration
FieldUserSelectionMode SelectionMode { get; set; }
Property Value
Gets or Sets whether the field should be shown as percentage
Valid for Number field, Calculated field
Declaration
bool ShowAsPercentage { get; set; }
Property Value
Represents status to determine whether filters pane will show the field
Declaration
ShowInFiltersPaneStatus ShowInFiltersPane { get; set; }
Property Value
Returns whether the field can be sorted
Declaration
Property Value
Gets or sets the GUID that identifies the TermStore object, which contains the Enterprise Keywords for the site that the current TaxonomyField belongs to.
Declaration
Property Value
Specifies the static name of the field
Declaration
string StaticName { get; }
Property Value
Gets or sets the Web-relative URL of the target page that is used to construct the hyperlink on each Term object when the TaxonomyField object is rendered.
Declaration
string TargetTemplate { get; set; }
Property Value
Gets or sets the GUID of the TermSet object that contains the Term objects used by the current TaxonomyField object.
Declaration
Guid TermSetId { get; set; }
Property Value
Gets or sets the GUID that identifies the hidden text field in an item.
Declaration
Guid TextField { get; set; }
Property Value
Gets or Sets the title of the field
Declaration
string Title { get; set; }
Property Value
Specifies the FieldTypeKind of the field as a string value
Declaration
string TypeAsString { get; }
Property Value
Specifies the display name for FieldTypeKind of the field
Declaration
string TypeDisplayName { get; }
Property Value
Specifies the description of the FieldTypeKind of the field
Declaration
string TypeShortDescription { get; }
Property Value
Gets or sets a value that specifies whether the field supports unlimited length in document libraries.
Declaration
bool UnlimitedLengthInDocumentLibrary { get; set; }
Property Value
Gets or sets a Boolean value that specifies whether the TaxonomyField object is linked to a customized TermSet object.
Declaration
bool UserCreated { get; set; }
Property Value
Specifies the message to display if validation formula fails for the field when a list item is added or updated in the list
Declaration
string ValidationMessage { get; set; }
Property Value
Methods
Declaration
IFieldLocationValue NewFieldLocationValue(string displayName, double latitude, double longitude)
Parameters
System.String
displayName
Name to display for this location
|
System.Double
latitude
Latitude for the location
|
System.Double
longitude
Longitude for the location
|
Returns
Declaration
IFieldLookupValue NewFieldLookupValue(int lookupId)
Parameters
System.Int32
lookupId
Id of the lookup value
|
Returns
Declaration
IFieldTaxonomyValue NewFieldTaxonomyValue(Guid termId, string label, int wssId = null)
Parameters
Guid
termId
Name of the term to set
|
System.String
label
Label of the term to set
|
System.Int32
wssId
Optionally provide the wssId value
|
Returns
Declaration
IFieldUrlValue NewFieldUrlValue(string url, string description = null)
Parameters
System.String
url
Url value
|
System.String
description
Optional description value
|
Returns
Declaration
IFieldUserValue NewFieldUserValue(ISharePointPrincipal principal)
Parameters
Returns
Declaration
IFieldUserValue NewFieldUserValue(int userId)
Parameters
System.Int32
userId
Id of the user
|
Returns
Declaration
IFieldValueCollection NewFieldValueCollection()
Returns
Declaration
IFieldValueCollection NewFieldValueCollection(IEnumerable<KeyValuePair<Guid, string>> fieldValues)
Parameters
IEnumerable<KeyValuePair<Guid, System.String>>
fieldValues
Collection of field values to add
|
Returns
Declaration
IFieldValueCollection NewFieldValueCollection(IEnumerable<IFieldValue> fieldValues)
Parameters
IEnumerable<IFieldValue>
fieldValues
Collection of field values to add
|
Returns
Updates the field and pushes changes down to lists consuming this field
Declaration
void UpdateAndPushChanges()
Updates the field and pushes changes down to lists consuming this field
Declaration
Task UpdateAndPushChangesAsync()
Returns
Updates the field and pushes changes down to lists consuming this field
Declaration
void UpdateAndPushChangesBatch()
Updates the field and pushes changes down to lists consuming this field
Declaration
void UpdateAndPushChangesBatch(Batch batch)
Parameters
Batch
batch
Batch to add this request to
|
Updates the field and pushes changes down to lists consuming this field
Declaration
Task UpdateAndPushChangesBatchAsync()
Returns
Updates the field and pushes changes down to lists consuming this field
Declaration
Task UpdateAndPushChangesBatchAsync(Batch batch)
Parameters
Batch
batch
Batch to add this request to
|
Returns
Extension Methods