ServerRole.EnumServerRolePermissions 方法
注意:此 API 已經過時。
Returns a list of server permissions assigned to the referenced server role.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<ObsoleteAttribute> _
Public Function EnumServerRolePermissions As DataTable
'用途
Dim instance As ServerRole
Dim returnValue As DataTable
returnValue = instance.EnumServerRolePermissions()
[ObsoleteAttribute]
public DataTable EnumServerRolePermissions()
[ObsoleteAttribute]
public:
DataTable^ EnumServerRolePermissions()
[<ObsoleteAttribute>]
member EnumServerRolePermissions : unit -> DataTable
public function EnumServerRolePermissions() : DataTable
傳回值
型別:System.Data.DataTable
An array of DataTable object values that contain information about server permissions assigned to the server role. The table describes the different columns of the returned DataTable.
Column |
Data type |
Description |
---|---|---|
ServerRole |
The fixed server role, for example, sysadmin. |
|
Permission |
The description of the server role permission. |
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間