SearchPropertyList.Grant SearchPropertyList.Grant SearchPropertyList.Grant Method

Definition

Grants the specified set of permissions to the specified grantee(s) on the SearchPropertyList.

Overloads

Grant(ObjectPermissionSet, String, Boolean, String) Grant(ObjectPermissionSet, String, Boolean, String) Grant(ObjectPermissionSet, String, Boolean, String)

Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the SearchPropertyListunder an assumed role.

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

Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the SearchPropertyListunder an assumed role.

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

Grants access to the specified permission to the grantees and the ability to grant access to other users on the SearchPropertyList.

Grant(ObjectPermissionSet, String) Grant(ObjectPermissionSet, String) Grant(ObjectPermissionSet, String)

Grants the specified set of permissions to the specified grantee on the SearchPropertyList.

Grant(ObjectPermissionSet, String[]) Grant(ObjectPermissionSet, String[]) Grant(ObjectPermissionSet, String[])

Grants the specified set of permissions to the specified grantees on the SearchPropertyList.

Grant(ObjectPermissionSet, String, Boolean) Grant(ObjectPermissionSet, String, Boolean) Grant(ObjectPermissionSet, String, Boolean)

Grants access to the specified permission to the grantee and the ability to grant access to other users on the SearchPropertyList.

Grant(ObjectPermissionSet, String, Boolean, String) Grant(ObjectPermissionSet, String, Boolean, String) Grant(ObjectPermissionSet, String, Boolean, String)

Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the SearchPropertyListunder an assumed role.

public:
 virtual void Grant(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permission, System::String ^ granteeName, bool grantGrant, System::String ^ asRole);
public void Grant (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permission, string granteeName, bool grantGrant, string asRole);
Public Sub Grant (permission As ObjectPermissionSet, granteeName As String, grantGrant As Boolean, asRole As String)
Parameters
permission
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object value that specifies the permissions.

granteeName
String String String

A String value that specifies the grantee to be granted the specified set of permissions on the SearchPropertyList.

grantGrant
Boolean Boolean Boolean

A Boolean property that specifies whether the grantee is given the ability to grant the specified set of permissions to other users on the SearchPropertyList.

asRole
String String String

A String value that specifies the role that the user assumes when granting the specified set of permissions to other users on the SearchPropertyList. Use this parameter for grantees who are members of more than one role.

Implements

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

Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the SearchPropertyListunder an assumed role.

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

An ObjectPermissionSet object value that specifies the permissions.

granteeNames
String[]

A String array that specifies the grantees to be granted the specified set of permissions on the SearchPropertyList.

grantGrant
Boolean Boolean Boolean

A Boolean property that specifies whether the grantees are given the ability to grant the specified set of permissions to other users on the SearchPropertyList.

asRole
String String String

A String value that specifies the role that the user assumes when granting the specified set of permissions to other users on the SearchPropertyList. Use this parameter for grantees who are members of more than one role.

Implements

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

Grants access to the specified permission to the grantees and the ability to grant access to other users on the SearchPropertyList.

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

An ObjectPermissionSet object value that specifies the permissions.

granteeNames
String[]

A String array that specifies the grantees to be granted the specified set of permissions on the SearchPropertyList.

grantGrant
Boolean Boolean Boolean

A Boolean property that specifies whether the grantees are given the ability to grant the specified set of permissions to other users on the SearchPropertyList.

Implements

Grant(ObjectPermissionSet, String) Grant(ObjectPermissionSet, String) Grant(ObjectPermissionSet, String)

Grants the specified set of permissions to the specified grantee on the SearchPropertyList.

public:
 virtual void Grant(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permission, System::String ^ granteeName);
public void Grant (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permission, string granteeName);
Public Sub Grant (permission As ObjectPermissionSet, granteeName As String)
Parameters
permission
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object value that specifies the permissions.

granteeName
String String String

A String value that specifies the grantee to be granted the specified set of permissions on the SearchPropertyList.

Implements

Grant(ObjectPermissionSet, String[]) Grant(ObjectPermissionSet, String[]) Grant(ObjectPermissionSet, String[])

Grants the specified set of permissions to the specified grantees on the SearchPropertyList.

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

An ObjectPermissionSet object value that specifies the permissions.

granteeNames
String[]

A String array that specifies the grantees to be granted the specified set of permissions on the SearchPropertyList.

Implements

Grant(ObjectPermissionSet, String, Boolean) Grant(ObjectPermissionSet, String, Boolean) Grant(ObjectPermissionSet, String, Boolean)

Grants access to the specified permission to the grantee and the ability to grant access to other users on the SearchPropertyList.

public:
 virtual void Grant(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permission, System::String ^ granteeName, bool grantGrant);
public void Grant (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permission, string granteeName, bool grantGrant);
Public Sub Grant (permission As ObjectPermissionSet, granteeName As String, grantGrant As Boolean)
Parameters
permission
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object value that specifies the permissions.

granteeName
String String String

A String value that specifies the grantee to be granted the specified set of permissions on the SearchPropertyList.

grantGrant
Boolean Boolean Boolean

A Boolean property that specifies whether the grantee is given the ability to grant the specified set of permissions to other users on the SearchPropertyList.

Implements

Applies to