IColumnPermission.Deny IColumnPermission.Deny IColumnPermission.Deny Method

Definition

Denies access to the specified permission for the specified grantees on the referenced column.

Overloads

Deny(ObjectPermissionSet, String, String[]) Deny(ObjectPermissionSet, String, String[]) Deny(ObjectPermissionSet, String, String[])

Denies access to the specified permissions for the specified grantee on the specified list of columns.

Deny(ObjectPermissionSet, String[], String[]) Deny(ObjectPermissionSet, String[], String[]) Deny(ObjectPermissionSet, String[], String[])

Denies access to the specified permissions for the specified grantees on the specified list of columns.

Deny(ObjectPermissionSet, String, String[], Boolean) Deny(ObjectPermissionSet, String, String[], Boolean) Deny(ObjectPermissionSet, String, String[], Boolean)

Denies access to the specified permission for the specified grantee and other users that the grantee granted access to on the specified list of columns.

Deny(ObjectPermissionSet, String[], String[], Boolean) Deny(ObjectPermissionSet, String[], String[], Boolean) Deny(ObjectPermissionSet, String[], String[], Boolean)

Denies access to the specified permission for the specified grantees and other users that the grantee granted access to on the specified list of columns.

Deny(ObjectPermissionSet, String, String[]) Deny(ObjectPermissionSet, String, String[]) Deny(ObjectPermissionSet, String, String[])

Denies access to the specified permissions for the specified grantee on the specified list of columns.

public:
 void Deny(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permissions, System::String ^ granteeName, cli::array <System::String ^> ^ columnNames);
public void Deny (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string granteeName, string[] columnNames);
Public Sub Deny (permissions As ObjectPermissionSet, granteeName As String, columnNames As String())
Parameters
permissions
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object value that specifies the permission.

granteeName
String String String

A String value that specifies the grantee to be denied access to the set of permissions.

columnNames
String[]

A String array that specifies the names of the columns to which the permission is denied.

Deny(ObjectPermissionSet, String[], String[]) Deny(ObjectPermissionSet, String[], String[]) Deny(ObjectPermissionSet, String[], String[])

Denies access to the specified permissions for the specified grantees on the specified list of columns.

public:
 void Deny(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permissions, cli::array <System::String ^> ^ granteeNames, cli::array <System::String ^> ^ columnNames);
public void Deny (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string[] granteeNames, string[] columnNames);
Public Sub Deny (permissions As ObjectPermissionSet, granteeNames As String(), columnNames As String())
Parameters
permissions
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object value that specifies the permission.

granteeNames
String[]

A String array value that specifies the list of grantees to be denied access to the set of permissions.

columnNames
String[]

A String array that specifies the names of the columns to which the permission is denied.

Deny(ObjectPermissionSet, String, String[], Boolean) Deny(ObjectPermissionSet, String, String[], Boolean) Deny(ObjectPermissionSet, String, String[], Boolean)

Denies access to the specified permission for the specified grantee and other users that the grantee granted access to on the specified list of columns.

public:
 void Deny(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permissions, System::String ^ granteeName, cli::array <System::String ^> ^ columnNames, bool cascade);
public void Deny (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string granteeName, string[] columnNames, bool cascade);
Public Sub Deny (permissions As ObjectPermissionSet, granteeName As String, columnNames As String(), cascade As Boolean)
Parameters
permissions
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object value that specifies the permission.

granteeName
String String String

A String value that specifies the grantee to be denied access to the set of permissions.

columnNames
String[]

A String array that specifies the names of the columns to which the permission is denied.

cascade
Boolean Boolean Boolean

A Boolean property that specifies whether users that the grantee has granted access to the permission are also denied access to the permission.

If True, the grantee and users to which the grantee granted access to the permission are all denied access to the permission.

If False, only the grantee is denied access to the permission.

Deny(ObjectPermissionSet, String[], String[], Boolean) Deny(ObjectPermissionSet, String[], String[], Boolean) Deny(ObjectPermissionSet, String[], String[], Boolean)

Denies access to the specified permission for the specified grantees and other users that the grantee granted access to on the specified list of columns.

public:
 void Deny(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permissions, cli::array <System::String ^> ^ granteeNames, cli::array <System::String ^> ^ columnNames, bool cascade);
public void Deny (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string[] granteeNames, string[] columnNames, bool cascade);
Public Sub Deny (permissions As ObjectPermissionSet, granteeNames As String(), columnNames As String(), cascade As Boolean)
Parameters
permissions
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object value that specifies the permission.

granteeNames
String[]

A String value that specifies the grantee to be denied access to the set of permissions.

columnNames
String[]

A String array that specifies the names of the columns to which the permission is denied.

cascade
Boolean Boolean Boolean

A Boolean property that specifies whether users that the grantee has granted access to the permission are also denied access to the permission.

If True, the grantee and users to which the grantee granted access to the permission are all denied access to the permission.

If False, only the grantee is denied access to the permission.

Applies to