Condividi tramite


SPView.ModerationType Property

Gets the Content Approval type for the view.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(FixedId := "valid", Type := ClientCallableConstraintType.Custom, Value := "It MUST be null or conform to ViewModerationType as specified in [MS-WSSCAML].")> _
Public ReadOnly Property ModerationType As String
    Get
'Usage
Dim instance As SPView
Dim value As String

value = instance.ModerationType
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(FixedId = "valid", Type = ClientCallableConstraintType.Custom, Value = "It MUST be null or conform to ViewModerationType as specified in [MS-WSSCAML].")]
public string ModerationType { get; }

Property Value

Type: System.String

A string that indicates the Content Approval type, which can be one of the following values:

  • HideUnapproved -- Unapproved draft items are hidden from users who only have permission to read items.

  • Contributor -- Pending and rejected items for the current user are displayed.

  • Moderator -- Pending and rejected items for all users are displayed to users who have managed list permissions.

See Also

Reference

SPView Class

SPView Members

Microsoft.SharePoint Namespace