Share via


SPViewContext.NeedToRedirect property

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.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property NeedToRedirect As Boolean
    Get
'Usage
Dim instance As SPViewContext
Dim value As Boolean

value = instance.NeedToRedirect
public bool NeedToRedirect { get; }

Property value

Type: System.Boolean
true if the content type of the view does not equal the content type of the root folder; otherwise, false.

See also

Reference

SPViewContext class

SPViewContext members

Microsoft.SharePoint namespace