共用方式為


SPViewCollection.Add Method

Include Protected Members
Include Inherited Members

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