共用方式為


PermissionInfo.Grantee 屬性

Gets the name of the database user, logon, or database role who has been granted or denied access to the object.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public ReadOnly Property Grantee As String 
    Get
'用途
Dim instance As PermissionInfo 
Dim value As String 

value = instance.Grantee
public string Grantee { get; }
public:
property String^ Grantee {
    String^ get ();
}
member Grantee : string
function get Grantee () : String

屬性值

型別:System.String
A String value that specifies the name of the grantee.

備註

This property is empty when column permissions are not enumerated.

範例

授與、撤銷和拒絕權限

請參閱

參考

PermissionInfo 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

權限 (Database Engine)

sys.syspermissions (Transact-SQL)