DatabasePermission.ViewDefinition Property

Gets a permission that can be included in the database permission set.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Shared ReadOnly Property ViewDefinition As DatabasePermission 
    Get
'Usage
Dim value As DatabasePermission 

value = DatabasePermission.ViewDefinition
public static DatabasePermission ViewDefinition { get; }
public:
static property DatabasePermission^ ViewDefinition {
    DatabasePermission^ get ();
}
static member ViewDefinition : DatabasePermission
static function get ViewDefinition () : DatabasePermission

Property Value

Type: Microsoft.SqlServer.Management.Smo.DatabasePermission
A DatabasePermission object that represents the ViewDefinition permission that can be included in the database permission set.

Examples

Granting, Revoking, and Denying Permissions

See Also

Reference

DatabasePermission Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Permissions (Database Engine)