Share via


SPViewCollection.Add method

Creates a view within the collection.

Overload list

  Name Description
Public method Add(String, StringCollection, String, UInt32, Boolean, Boolean) Creates a view in the collection with the specified name, view fields, query, row limit, and Boolean values that specify whether the view displays items page by page and whether it is the default view.
Public method Add(String, StringCollection, String, UInt32, Boolean, Boolean, SPViewCollection.SPViewType, Boolean) Creates a view in the collection with the specified name, view fields, query, row limit, Boolean values specifying whether the view displays items page by page and whether it is the default view, the view type, and a Boolean value specifying whether the view is personal or public.
Public method Add(String, StringCollection, String, String, String, UInt32, Boolean, Boolean, SPViewCollection.SPViewType, Boolean) Creates a view in the collection with the specified name, view fields, query, joins, projected fields, row limit, view type, and Boolean values that specify whether the view displays items page by page, whether it is the default view, and whether the view is personal or public.

Top

See also

Reference

SPViewCollection class

SPViewCollection members

Microsoft.SharePoint namespace