Table of Contents

Class ViewOptions

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Options for creating a view

public class ViewOptions
Inheritance
ViewOptions
Inherited Members

Properties

AssociatedContentTypeId

Gets or sets the associated content type id

public string AssociatedContentTypeId { get; set; }

Property Value

string

BaseViewId

Gets or sets the base view Id

public int? BaseViewId { get; set; }

Property Value

int?

CalendarViewStyles

Gets of sets the Calendar view styles

public string CalendarViewStyles { get; set; }

Property Value

string

Paged

Gets or sets a value that specifies whether the new list view is a paged view.

public bool Paged { get; set; }

Property Value

bool

PersonalView

Gets or sets a value that specifies whether the new list view is a personal view. If the value is false, the new list view is a public view.

public bool PersonalView { get; set; }

Property Value

bool

Query

Gets or sets a value that specifies the query for the new list view.

public string Query { get; set; }

Property Value

string

RowLimit

Gets or sets a value that specifies the maximum number of list items that the new list view displays on a visual page of the list view.

public int? RowLimit { get; set; }

Property Value

int?

SetAsDefaultView

Gets or sets a value that specifies whether the new list view is the default list view.

public bool SetAsDefaultView { get; set; }

Property Value

bool

Title

Gets or sets the value that specifies the display name of the new list view.

public string Title { get; set; }

Property Value

string

ViewData

Gets or sets the view data

public string ViewData { get; set; }

Property Value

string

ViewFields

Gets or sets the value that specifies the collection of field internal names for the list fields in the new list view.

public string[] ViewFields { get; set; }

Property Value

string[]

ViewType2

Gets or sets the View Type 2 information

public ViewType2 ViewType2 { get; set; }

Property Value

ViewType2

ViewTypeKind

Gets or sets a value that specifies the type of the new list view.

public ViewTypeKind ViewTypeKind { get; set; }

Property Value

ViewTypeKind