UserDefinedFunction.Grant Method (ObjectPermissionSet, String[], String[])

 

Grants the specified set of permissions to the grantees to the specified columns on the user-defined function.

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

public void Grant(
	ObjectPermissionSet permission,
	string[] granteeNames,
	string[] columnNames
)

Parameters

permission
Type: Microsoft.SqlServer.Management.Smo.ObjectPermissionSet

An ObjectPermissionSet object that specifies the permission.

granteeNames
Type: System.String[]

A String array value that specifies the list of grantees to be granted access to the permission.

columnNames
Type: System.String[]

A String array value that specifies the list of columns to which the set of permissions is granted.

Return to top
Show: