共用方式為


ServerPermissionSet 建構函式 (array<ServerPermission )

Initializes a new instance of the ServerPermissionSet class based on the specified set of permissions.

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

語法

'宣告
Public Sub New ( _
    ParamArray permissions As ServerPermission() _
)
'用途
Dim permissions As ServerPermission()

Dim instance As New ServerPermissionSet(permissions)
public ServerPermissionSet(
    params ServerPermission[] permissions
)
public:
ServerPermissionSet(
    ... array<ServerPermission^>^ permissions
)
new : 
        permissions:ServerPermission[] -> ServerPermissionSet
public function ServerPermissionSet(
    ... permissions : ServerPermission[]
)

參數

範例

授與、撤銷和拒絕權限

請參閱

參考

ServerPermissionSet 類別

ServerPermissionSet 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

權限 (Database Engine)

sys.server_permissions (Transact-SQL)