다음을 통해 공유


View Schema

Applies to: SharePoint Foundation 2010

The View schema of Collaborative Application Markup Language (CAML) is used to define how the contents of a list view are rendered in Microsoft SharePoint Foundation.

Note

SharePoint Foundation 2010 uses XSLT to define list views, and the View schema is maintained for backward compatibility. For information about XSLT list views, see List Views.

A list view includes a query that returns the data that is displayed in the view. For the list of query elements, see Query Schema. For the top-level elements that are used to organize a view, see List Schema.

In SharePoint Foundation 2010 .aspx pages, the view is conveyed through a Microsoft.SharePoint.WebPartPages.XsltListViewWebPart object. Views can be created or modified programmatically through either the server-side or client-side object model (for example, members of SPView or SPViewCollection and their related types in the Microsoft.SharePoint.Client (JavaScript: SP) namespace), through the Views web service (methods of the Views class), or through remote procedure call (RPC) protocol (see SharePoint Foundation Methods).

Specialized Rendering Elements

Specialized rendering elements are used within a view to define the logic for constructing HTML. These elements can contain numerous standard rendering elements.

ContentTypes

Fields

FieldSwitch

  Expr

  Case

  Default

ForEach

IfEqual

  Expr1

  Expr2

  Else

  Then

IfHasRights

  RightsChoices

    RightsGroup

  Else

  Then

IfNeg

  Expr1

  Expr2

IfNew

IfSubString

  Expr1

  Expr2

  Else

  Then

Limit

  Column

  More

  Text

Length

MapToAll

MapToContentType

MapToControl

MapToIcon

Method

  SetList

  SetVar

SelectionOptions

Switch

  Expr

  Case

  Default

Standard Rendering Elements

The following standard rendering elements are used to render HTML within the various sections of the previously listed structural or specialized rendering elements.

Column

Column2

Counter

CurrentRights

Field

FieldPrefix

FieldProperty

FieldSortParams

FilterLink

GetFileExtension

GetVar

HTML

HttpHost

HttpPath

HttpVDir

ID

Identity

List

ListProperty

ListUrl

ListUrlDir

LookupColumn

MeetingProperty

PageUrl

ProjectProperty

Property

ScriptQuote

ServerProperty

SetList

SetVar

ThreadStamp

URL

UrlBaseName

UrlDirName

UserID

WebQueryInfo

See Also

Concepts

XMLDefinition and CAML View Schema

Query Schema

List Schema

Other Resources

List Views