SharePointPermission.ObjectModel property

Gets or sets a value indicating whether use of the SharePoint object model is allowed.

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

Syntax

'Declaration
Public Property ObjectModel As Boolean
    Get
    Set
'Usage
Dim instance As SharePointPermission
Dim value As Boolean

value = instance.ObjectModel

instance.ObjectModel = value
public bool ObjectModel { get; set; }

Property value

Type: System.Boolean
true if object model use is allowed; otherwise, false.

See also

Reference

SharePointPermission class

SharePointPermission members

Microsoft.SharePoint.Security namespace