Search Results for

    Show / Hide Table of Contents

    Interface IField

    Public interface to define a Field object of SharePoint Online

    Inherited Members
    IDataModel<IField>.Requested
    IDataModel<IField>.HasValue(String)
    IDataModel<IField>.HasChanged(String)
    IDataModel<IField>.IsPropertyAvailable(Expression<Func<IField, Object>>)
    IDataModel<IField>.ArePropertiesAvailable(Expression<Func<IField, Object>>[])
    IDataModel<IField>.EnsureProperties(Expression<Func<IField, Object>>[])
    IDataModel<IField>.EnsurePropertiesAsync(Expression<Func<IField, Object>>[])
    IDataModel<IField>.ExecuteRequestAsync(ApiRequest)
    IDataModel<IField>.ExecuteRequest(ApiRequest)
    IDataModel<IField>.ExecuteRequestBatchAsync(ApiRequest)
    IDataModel<IField>.ExecuteRequestBatch(ApiRequest)
    IDataModel<IField>.ExecuteRequestBatchAsync(Batch, ApiRequest)
    IDataModel<IField>.ExecuteRequestBatch(Batch, ApiRequest)
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IDataModelGet<IField>.GetBatchAsync(Batch, Expression<Func<IField, Object>>[])
    IDataModelGet<IField>.GetAsync(Expression<Func<IField, Object>>[])
    IDataModelLoad<IField>.LoadBatchAsync(Batch, Expression<Func<IField, Object>>[])
    IDataModelLoad<IField>.LoadAsync(Expression<Func<IField, Object>>[])
    IDataModelUpdate.UpdateBatchAsync()
    IDataModelUpdate.UpdateBatchAsync(Batch)
    IDataModelUpdate.UpdateAsync()
    IDataModelUpdate.UpdateBatch()
    IDataModelUpdate.UpdateBatch(Batch)
    IDataModelUpdate.Update()
    IDataModelDelete.DeleteBatchAsync()
    IDataModelDelete.DeleteBatchAsync(Batch)
    IDataModelDelete.DeleteAsync()
    IDataModelDelete.DeleteBatch()
    IDataModelDelete.DeleteBatch(Batch)
    IDataModelDelete.Delete()
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface IField : IDataModel<IField>, IDataModelParent, IDataModelWithContext, ISupportModules<IField>, IDataModelGet<IField>, IDataModelLoad<IField>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel

    Properties

    All

    A special property used to add an asterisk to a $select statement

    Declaration
    object All { get; }
    Property Value
    System.Object

    AllowDisplay

    Gets or sets whether to allow display if the user name

    Declaration
    bool AllowDisplay { get; set; }
    Property Value
    System.Boolean

    AllowHyperlink

    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
    System.Boolean

    AllowMultipleValues

    Gets or sets whether the lookup fields allows multiple values

    Declaration
    bool AllowMultipleValues { get; set; }
    Property Value
    System.Boolean

    AnchorId

    Gets or sets the GUID of the anchor Term object for a TaxonomyField

    Declaration
    Guid AnchorId { get; set; }
    Property Value
    Guid

    AppendOnly

    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
    System.Boolean

    AutoIndexed

    Gets or sets a Boolean value that specifies whether the field is auto-indexed

    Declaration
    bool AutoIndexed { get; set; }
    Property Value
    System.Boolean

    CanBeDeleted

    Specifies whether or not the field can be deleted

    Declaration
    bool CanBeDeleted { get; }
    Property Value
    System.Boolean

    Choices

    Gets or sets the choices of choice field

    Declaration
    string[] Choices { get; set; }
    Property Value
    System.String[]

    ClientSideComponentId

    Gets or Sets the client side component Id associated with the field

    Declaration
    Guid ClientSideComponentId { get; set; }
    Property Value
    Guid

    ClientSideComponentProperties

    Gets or Sets the properties of the client side component associated with the field

    Declaration
    string ClientSideComponentProperties { get; set; }
    Property Value
    System.String

    ClientValidationFormula

    Gets or Sets the validation formula

    Declaration
    string ClientValidationFormula { get; set; }
    Property Value
    System.String

    ClientValidationMessage

    Gets or Sets the client validation message of the field

    Declaration
    string ClientValidationMessage { get; set; }
    Property Value
    System.String

    CreateValuesInEditForm

    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
    bool CreateValuesInEditForm { get; set; }
    Property Value
    System.Boolean

    CurrencyLocaleId

    Gets or Sets the Locale Id of the currency

    Declaration
    int CurrencyLocaleId { get; set; }
    Property Value
    System.Int32

    CustomFormatter

    Gets or Sets custom formatter of the field

    Declaration
    string CustomFormatter { get; set; }
    Property Value
    System.String

    DateFormat

    Gets or Sets the Date Format Valid for DateTime field, Calculated field

    Declaration
    DateTimeFieldFormatType DateFormat { get; set; }
    Property Value
    DateTimeFieldFormatType

    DateTimeCalendarType

    Gets or sets the type of calendar to use of a DateTime field

    Declaration
    CalendarType DateTimeCalendarType { get; set; }
    Property Value
    CalendarType

    DefaultFormula

    Gets or sets the default formula for a calculated field

    Declaration
    string DefaultFormula { get; set; }
    Property Value
    System.String

    DefaultValue

    Gets or Sets the default value of the field

    Declaration
    object DefaultValue { get; set; }
    Property Value
    System.Object

    DependentLookupInternalNames

    Gets the dependent lookup internal names of a lookup field

    Declaration
    string[] DependentLookupInternalNames { get; }
    Property Value
    System.String[]

    Description

    Gets or Sets the description of the field

    Declaration
    string Description { get; set; }
    Property Value
    System.String

    Direction

    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
    System.String

    DisplayFormat

    Gets or Sets the display format of the field CAUTION: Is an integer value since according to field type, the display format enum may change

    Declaration
    int DisplayFormat { get; set; }
    Property Value
    System.Int32

    EditFormat

    Determines whether to display the choice field as radio buttons or as a drop-down list

    Declaration
    ChoiceFormatType EditFormat { get; set; }
    Property Value
    ChoiceFormatType

    EnableLookup

    Gets or sets whether the lookup should be enabled for computed field

    Declaration
    bool EnableLookup { get; set; }
    Property Value
    System.Boolean

    EnforceUniqueValues

    Gets or Sets whether the field enforces unique values

    Declaration
    bool EnforceUniqueValues { get; set; }
    Property Value
    System.Boolean

    EntityPropertyName

    Gets the name of the entity property for the list item entity that uses this field

    Declaration
    string EntityPropertyName { get; }
    Property Value
    System.String

    FieldTypeKind

    Gets or Sets the field type kind of the field https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server/ee540543%28v%3doffice.15%29

    Declaration
    FieldType FieldTypeKind { get; }
    Property Value
    FieldType

    FillInChoice

    Gets or sets whether choice field can be filled in by user

    Declaration
    bool FillInChoice { get; set; }
    Property Value
    System.Boolean

    Filterable

    Returns whether the field can be filtered

    Declaration
    bool Filterable { get; }
    Property Value
    System.Boolean

    Formula

    Specifies the formula that is used for calculation in the field

    Declaration
    string Formula { get; set; }
    Property Value
    System.String

    FriendlyDisplayFormat

    Gets or sets the friendly format type of a DateTime field

    Declaration
    DateTimeFieldFriendlyFormatType FriendlyDisplayFormat { get; set; }
    Property Value
    DateTimeFieldFriendlyFormatType

    FromBaseType

    Gets a Boolean value that indicates whether the field derives from a base field type.

    Declaration
    bool FromBaseType { get; }
    Property Value
    System.Boolean

    Group

    Gets or Sets the group of the field

    Declaration
    string Group { get; set; }
    Property Value
    System.String

    Hidden

    Specifies whether the field is displayed in the list

    Declaration
    bool Hidden { get; set; }
    Property Value
    System.Boolean

    Id

    Provides the id of the field

    Declaration
    Guid Id { get; }
    Property Value
    Guid

    Indexed

    Gets or Sets whether the field is indexed

    Declaration
    bool Indexed { get; set; }
    Property Value
    System.Boolean

    IndexStatus

    Describes whether a field is indexed, and whether the data in the index is complete

    Declaration
    FieldIndexStatus IndexStatus { get; }
    Property Value
    FieldIndexStatus

    InternalName

    Specifies the internal name of the field

    Declaration
    string InternalName { get; }
    Property Value
    System.String

    IsAnchorValid

    Gets a Boolean value that specifies whether the Term object identified by the AnchorId property is valid.

    Declaration
    bool IsAnchorValid { get; }
    Property Value
    System.Boolean

    IsDependentLookup

    Check whether a lookup field is a dependent lookup field

    Declaration
    bool IsDependentLookup { get; }
    Property Value
    System.Boolean

    IsKeyword

    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
    System.Boolean

    IsPathRendered

    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
    System.Boolean

    IsRelationship

    Specifies whether this Lookup field is discoverable from the List being looked up to

    Declaration
    bool IsRelationship { get; set; }
    Property Value
    System.Boolean

    IsTermSetValid

    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
    System.Boolean

    JSLink

    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
    System.String

    LookupField

    Specifies the name of the Field used as the lookup values

    Declaration
    string LookupField { get; set; }
    Property Value
    System.String

    LookupList

    Specifies the id (GUID) of the List that contains the Field to use as the lookup values

    Declaration
    string LookupList { get; set; }
    Property Value
    System.String

    LookupWebId

    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
    Guid

    Mappings

    Gets the mappings of a choice field

    Declaration
    string Mappings { get; }
    Property Value
    System.String

    MaximumValue

    Gets or sets the maximum value of a number field

    Declaration
    double MaximumValue { get; set; }
    Property Value
    System.Double

    MaxLength

    Specifies the maximum number of characters that can be typed in the field

    Declaration
    int MaxLength { get; set; }
    Property Value
    System.Int32

    MinimumValue

    Gets or sets the minimum value of a number field

    Declaration
    double MinimumValue { get; set; }
    Property Value
    System.Double

    NumberOfLines

    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
    System.Int32

    Open

    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
    bool Open { get; set; }
    Property Value
    System.Boolean

    OutputType

    Gets or sets the type of a calculated field output

    Declaration
    FieldType OutputType { get; set; }
    Property Value
    FieldType

    Presence

    Gets or sets whether to display the presence indicator of the user

    Declaration
    bool Presence { get; set; }
    Property Value
    System.Boolean

    PrimaryFieldId

    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
    System.String

    ReadOnlyField

    Specifies whether values in the field can be modified

    Declaration
    bool ReadOnlyField { get; set; }
    Property Value
    System.Boolean

    RelationshipDeleteBehavior

    Specifies the Delete Behavior of the Lookup Field

    Declaration
    RelationshipDeleteBehaviorType RelationshipDeleteBehavior { get; set; }
    Property Value
    RelationshipDeleteBehaviorType

    Required

    Gets or Sets whether the field is required

    Declaration
    bool Required { get; set; }
    Property Value
    System.Boolean

    RestrictedMode

    Gets or sets a value that specifies whether the field supports a subset of rich formatting.

    Declaration
    bool RestrictedMode { get; set; }
    Property Value
    System.Boolean

    RichText

    Gets or sets a value that specifies whether the field supports rich formatting.

    Declaration
    bool RichText { get; set; }
    Property Value
    System.Boolean

    SchemaXml

    Specifies the schema that defines the field

    Declaration
    string SchemaXml { get; set; }
    Property Value
    System.String

    Scope

    Specifies the ServerRelativeUrl of the of the web site folder in which the field belongs to

    Declaration
    string Scope { get; }
    Property Value
    System.String

    Sealed

    Specifies whether the field can be changed or deleted

    Declaration
    bool Sealed { get; set; }
    Property Value
    System.Boolean

    SelectionGroup

    Gets or sets the Id of the group to which the users to select belong to

    Declaration
    int SelectionGroup { get; set; }
    Property Value
    System.Int32

    SelectionMode

    Gets or sets the selection mode of the user field

    Declaration
    FieldUserSelectionMode SelectionMode { get; set; }
    Property Value
    FieldUserSelectionMode

    ShowAsPercentage

    Gets or Sets whether the field should be shown as percentage Valid for Number field, Calculated field

    Declaration
    bool ShowAsPercentage { get; set; }
    Property Value
    System.Boolean

    ShowInFiltersPane

    Represents status to determine whether filters pane will show the field

    Declaration
    ShowInFiltersPaneStatus ShowInFiltersPane { get; set; }
    Property Value
    ShowInFiltersPaneStatus

    Sortable

    Returns whether the field can be sorted

    Declaration
    bool Sortable { get; }
    Property Value
    System.Boolean

    SspId

    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
    Guid SspId { get; set; }
    Property Value
    Guid

    StaticName

    Specifies the static name of the field

    Declaration
    string StaticName { get; }
    Property Value
    System.String

    TargetTemplate

    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
    System.String

    TermSetId

    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
    Guid

    TextField

    Gets or sets the GUID that identifies the hidden text field in an item.

    Declaration
    Guid TextField { get; set; }
    Property Value
    Guid

    Title

    Gets or Sets the title of the field

    Declaration
    string Title { get; set; }
    Property Value
    System.String

    TypeAsString

    Specifies the FieldTypeKind of the field as a string value

    Declaration
    string TypeAsString { get; }
    Property Value
    System.String

    TypeDisplayName

    Specifies the display name for FieldTypeKind of the field

    Declaration
    string TypeDisplayName { get; }
    Property Value
    System.String

    TypeShortDescription

    Specifies the description of the FieldTypeKind of the field

    Declaration
    string TypeShortDescription { get; }
    Property Value
    System.String

    UnlimitedLengthInDocumentLibrary

    Gets or sets a value that specifies whether the field supports unlimited length in document libraries.

    Declaration
    bool UnlimitedLengthInDocumentLibrary { get; set; }
    Property Value
    System.Boolean

    UserCreated

    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
    System.Boolean

    ValidationFormula

    Specifies the formula referred by the field and gets evaluated when a list item is added or updated in the list

    Declaration
    string ValidationFormula { get; set; }
    Property Value
    System.String

    ValidationMessage

    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
    System.String

    Methods

    NewFieldLocationValue(String, Double, Double)

    Creates a new IFieldLocationValue object

    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
    IFieldLocationValue

    Configured IFieldLocationValue object

    NewFieldLookupValue(Int32)

    Creates a new IFieldLookupValue object

    Declaration
    IFieldLookupValue NewFieldLookupValue(int lookupId)
    Parameters
    System.Int32 lookupId

    Id of the lookup value

    Returns
    IFieldLookupValue

    Configured IFieldLookupValue object

    NewFieldTaxonomyValue(Guid, String, Int32)

    Creates a new IFieldTaxonomyValue object

    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
    IFieldTaxonomyValue

    Configured IFieldTaxonomyValue object

    NewFieldUrlValue(String, String)

    Creates a new IFieldUrlValue object

    Declaration
    IFieldUrlValue NewFieldUrlValue(string url, string description = null)
    Parameters
    System.String url

    Url value

    System.String description

    Optional description value

    Returns
    IFieldUrlValue

    Configured IFieldUrlValue object

    NewFieldUserValue(ISharePointPrincipal)

    Creates a new IFieldUserValue object

    Declaration
    IFieldUserValue NewFieldUserValue(ISharePointPrincipal principal)
    Parameters
    ISharePointPrincipal principal

    ISharePointUser or ISharePointGroup

    Returns
    IFieldUserValue

    Configured IFieldUserValue object

    NewFieldUserValue(Int32)

    Creates a new IFieldUserValue object

    Declaration
    IFieldUserValue NewFieldUserValue(int userId)
    Parameters
    System.Int32 userId

    Id of the user

    Returns
    IFieldUserValue

    Configured IFieldUserValue object

    NewFieldValueCollection()

    Creates a new collection to hold IFieldValue objects

    Declaration
    IFieldValueCollection NewFieldValueCollection()
    Returns
    IFieldValueCollection

    NewFieldValueCollection(IEnumerable<KeyValuePair<Guid, String>>)

    Creates a new collection to hold IFieldTaxonomyValue objects

    Declaration
    IFieldValueCollection NewFieldValueCollection(IEnumerable<KeyValuePair<Guid, string>> fieldValues)
    Parameters
    IEnumerable<KeyValuePair<Guid, System.String>> fieldValues

    Collection of field values to add

    Returns
    IFieldValueCollection

    NewFieldValueCollection(IEnumerable<IFieldValue>)

    Creates a new collection to hold IFieldValue objects

    Declaration
    IFieldValueCollection NewFieldValueCollection(IEnumerable<IFieldValue> fieldValues)
    Parameters
    IEnumerable<IFieldValue> fieldValues

    Collection of field values to add

    Returns
    IFieldValueCollection

    SetShowInDisplayForm(Boolean)

    Configure the visibility of the field in a Display form

    Declaration
    void SetShowInDisplayForm(bool show)
    Parameters
    System.Boolean show

    True when the field will be configured as visible (= default), false otherwise

    SetShowInDisplayFormAsync(Boolean)

    Configure the visibility of the field in a Display form

    Declaration
    Task SetShowInDisplayFormAsync(bool show)
    Parameters
    System.Boolean show

    True when the field will be configured as visible (= default), false otherwise

    Returns
    Task

    SetShowInEditForm(Boolean)

    Configure the visibility of the field in a Edit form

    Declaration
    void SetShowInEditForm(bool show)
    Parameters
    System.Boolean show

    True when the field will be configured as visible (= default), false otherwise

    SetShowInEditFormAsync(Boolean)

    Configure the visibility of the field in a Edit form

    Declaration
    Task SetShowInEditFormAsync(bool show)
    Parameters
    System.Boolean show

    True when the field will be configured as visible (= default), false otherwise

    Returns
    Task

    SetShowInNewForm(Boolean)

    Configure the visibility of the field in a New form

    Declaration
    void SetShowInNewForm(bool show)
    Parameters
    System.Boolean show

    True when the field will be configured as visible (= default), false otherwise

    SetShowInNewFormAsync(Boolean)

    Configure the visibility of the field in a New form

    Declaration
    Task SetShowInNewFormAsync(bool show)
    Parameters
    System.Boolean show

    True when the field will be configured as visible (= default), false otherwise

    Returns
    Task

    UpdateAndPushChanges()

    Updates the field and pushes changes down to lists consuming this field

    Declaration
    void UpdateAndPushChanges()

    UpdateAndPushChangesAsync()

    Updates the field and pushes changes down to lists consuming this field

    Declaration
    Task UpdateAndPushChangesAsync()
    Returns
    Task

    UpdateAndPushChangesBatch()

    Updates the field and pushes changes down to lists consuming this field

    Declaration
    void UpdateAndPushChangesBatch()

    UpdateAndPushChangesBatch(Batch)

    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

    UpdateAndPushChangesBatchAsync()

    Updates the field and pushes changes down to lists consuming this field

    Declaration
    Task UpdateAndPushChangesBatchAsync()
    Returns
    Task

    UpdateAndPushChangesBatchAsync(Batch)

    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
    Task

    Extension Methods

    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.Get<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.Load<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.QueryProperties<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    RequestModuleExtensions.WithHeaders<TModel>(ISupportModules<TModel>, Dictionary<String, String>, Action<Dictionary<String, String>>)
    RequestModuleExtensions.WithResponseHeaders<TModel>(ISupportModules<TModel>, Action<Dictionary<String, String>>)
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer