UserDefinedFunction.Deny UserDefinedFunction.Deny UserDefinedFunction.Deny Method

Definition

Denies the specified set of permissions for the specified grantees on the user-defined function.

Overloads

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

Denies the specified set of permissions for the specified grantees and other users that the grantee granted the specified set of permissions on the specified columns on the user-defined function.

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

Denies the specified set of permissions for the grantees on the specified columns on the user-defined function.

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

Denies the specified permission for the specified grantees on the user-defined function.

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

Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the specified columns on the user-defined function.

Deny(ObjectPermissionSet, String, Boolean) Deny(ObjectPermissionSet, String, Boolean) Deny(ObjectPermissionSet, String, Boolean)

Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the user-defined function.

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

Denies the specified set of permissions for the specified grantees on the user-defined function.

Deny(ObjectPermissionSet, String) Deny(ObjectPermissionSet, String) Deny(ObjectPermissionSet, String)

Denies the specified set of permissions for the specified grantee on the user-defined function.

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

Denies the specified set of permissions to the grantee on the specified columns on the user-defined function.

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

Denies the specified set of permissions for the specified grantees and other users that the grantee granted the specified set of permissions on the specified columns on the user-defined function.

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

An ObjectPermissionSet object value that specifies the set of permissions.

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 value that specifies the list of columns to which the set of permissions is denied.

cascade
Boolean Boolean Boolean

A Boolean property that specifies whether users, to whom the grantee granted the specified set of permission, are also denied access to the specified set of permissions on the user-defined function.

If True, the grantee and users to which the grantee granted the specified set of permissions are all denied the specified set of permissions.

If False, only the grantee is denied the specified set of permissions.

Implements

Examples

Granting, Revoking, and Denying Permissions

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

Denies the specified set of permissions for the grantees on the specified columns on the user-defined function.

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

An ObjectPermissionSet object value that specifies the set of permissions.

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 value that specifies the list of columns to which the set of permissions is denied.

Implements

Examples

Granting, Revoking, and Denying Permissions

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

Denies the specified permission for the specified grantees on the user-defined function.

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

An ObjectPermissionSet object value that specifies the permission.

granteeNames
String[]

A String array that specifies a list of grantees to be denied the specified set of permissions.

cascade
Boolean Boolean Boolean

A Boolean property that specifies whether users, to whom the grantee granted the specified set of permission, are also denied access to the specified set of permissions on the user-defined function.

If True, the grantee and users to which the grantee granted the specified set of permissions are all denied the specified set of permissions.

If False, only the grantee is denied the specified set of permissions.

Implements

Examples

Granting, Revoking, and Denying Permissions

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

Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the specified columns on the user-defined function.

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

An ObjectPermissionSet object value that specifies the set of permissions.

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 value that specifies the list of columns to which the set of permissions is denied.

cascade
Boolean Boolean Boolean

A Boolean property that specifies whether users, to whom the grantee granted the specified set of permission, are also denied access to the specified set of permissions on the user-defined function.

If True, the grantee and users to which the grantee granted the specified set of permissions are all denied the specified set of permissions.

If False, only the grantee is denied the specified set of permissions.

Implements

Examples

Granting, Revoking, and Denying Permissions

Deny(ObjectPermissionSet, String, Boolean) Deny(ObjectPermissionSet, String, Boolean) Deny(ObjectPermissionSet, String, Boolean)

Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the user-defined function.

public:
 virtual void Deny(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permission, System::String ^ granteeName, bool cascade);
public void Deny (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permission, string granteeName, bool cascade);
Public Sub Deny (permission As ObjectPermissionSet, granteeName As String, cascade As Boolean)
Parameters
permission
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 the specified set of permissions on the user-defined function.

cascade
Boolean Boolean Boolean

A Boolean property that specifies whether users, to whom the grantee granted the specified set of permission, are also denied access to the specified set of permissions on the user-defined function.

If True, the grantee and users to which the grantee granted the specified set of permissions are all denied the specified set of permissions.

If False, only the grantee is denied the specified set of permissions.

Implements

Examples

Granting, Revoking, and Denying Permissions

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

Denies the specified set of permissions for the specified grantees on the user-defined function.

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

An ObjectPermissionSet object value that specifies the permission.

granteeNames
String[]

A String array that specifies a list of grantees to be denied the specified set of permissions on the user-defined function.

Implements

Examples

Granting, Revoking, and Denying Permissions

See Also

Deny(ObjectPermissionSet, String) Deny(ObjectPermissionSet, String) Deny(ObjectPermissionSet, String)

Denies the specified set of permissions for the specified grantee on the user-defined function.

public:
 virtual void Deny(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permission, System::String ^ granteeName);
public void Deny (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permission, string granteeName);
Public Sub Deny (permission As ObjectPermissionSet, granteeName As String)
Parameters
permission
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 the specified set of permissions on the user-defined function.

Implements

Examples

Granting, Revoking, and Denying Permissions

See Also

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

Denies the specified set of permissions to the grantee on the specified columns on the user-defined function.

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

An ObjectPermissionSet object value that specifies the set of permissions.

granteeName
String String String

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

columnNames
String[]

A String array value that specifies the list of columns for which the permission is denied.

Implements

Examples

Granting, Revoking, and Denying Permissions

Applies to