Share via


SPViewContext members

Provides specific information about the context of a view.

The SPViewContext type exposes the following members.

Properties

  Name Description
Public property NeedToRedirect Gets a Boolean value that indicates whether the content type that is associated with the view equals the content type that is associated with the root folder of the view.
Public property View Gets the view that is described by the view context.
Public property ViewId Gets the identifier of the view that is described by the view context.
Public property ViewType Gets the view type of the current page that is described by the view context.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method RedirectIfNecessary Performs URL redirection to the root folder of the view when the content type of the root folder differs from the content type of the view.
Public method ToString (Inherited from Object.)

Top

See also

Reference

SPViewContext class

Microsoft.SharePoint namespace