共用方式為


Grantor 屬性

取得授與或拒絕物件存取權的資料庫使用者、登入或資料庫角色的名稱。

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

語法

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

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

屬性值

型別:System. . :: . .String
指定被授與者名稱的 String 值。

備註

This property is empty when column permissions are not enumerated.