次の方法で共有


SearchPropertyList.Grant メソッド (ObjectPermissionSet, String, Boolean)

権限付与対象ユーザーに対して、特定の権限のセットへのアクセスを許可します。また、このユーザーは、SearchPropertyList について、他のユーザーに権限のセットへのアクセスを許可することができます。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Sub Grant ( _
    permission As ObjectPermissionSet, _
    granteeName As String, _
    grantGrant As Boolean _
)
'使用
Dim instance As SearchPropertyList 
Dim permission As ObjectPermissionSet 
Dim granteeName As String 
Dim grantGrant As Boolean

instance.Grant(permission, granteeName, _
    grantGrant)
public void Grant(
    ObjectPermissionSet permission,
    string granteeName,
    bool grantGrant
)
public:
virtual void Grant(
    ObjectPermissionSet^ permission, 
    String^ granteeName, 
    bool grantGrant
) sealed
abstract Grant : 
        permission:ObjectPermissionSet * 
        granteeName:string * 
        grantGrant:bool -> unit  
override Grant : 
        permission:ObjectPermissionSet * 
        granteeName:string * 
        grantGrant:bool -> unit
public final function Grant(
    permission : ObjectPermissionSet, 
    granteeName : String, 
    grantGrant : boolean
)

パラメーター

  • grantGrant
    型: System.Boolean
    権限付与対象ユーザーに対して、SearchPropertyList の指定した権限セットを他のユーザーに許可する権利を与えるかどうかを示す Boolean プロパティです。

実装

IObjectPermission.Grant(ObjectPermissionSet, String, Boolean)

関連項目

参照

SearchPropertyList クラス

Grant オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間