다음을 통해 공유


Add 메서드 (DatabasePermissionSet, DatabasePermission)

Returns a database permission set after adding a new a database permission to the specified permission set.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
Public Shared Function Add ( _
    permissionLeft As DatabasePermissionSet, _
    permissionRight As DatabasePermission _
) As DatabasePermissionSet
‘사용 방법
Dim permissionLeft As DatabasePermissionSet
Dim permissionRight As DatabasePermission
Dim returnValue As DatabasePermissionSet

returnValue = DatabasePermissionSet.Add(permissionLeft, _
    permissionRight)
public static DatabasePermissionSet Add(
    DatabasePermissionSet permissionLeft,
    DatabasePermission permissionRight
)
public:
static DatabasePermissionSet^ Add(
    DatabasePermissionSet^ permissionLeft, 
    DatabasePermission^ permissionRight
)
static member Add : 
        permissionLeft:DatabasePermissionSet * 
        permissionRight:DatabasePermission -> DatabasePermissionSet 
public static function Add(
    permissionLeft : DatabasePermissionSet, 
    permissionRight : DatabasePermission
) : DatabasePermissionSet

매개 변수

반환 값

형식: Microsoft.SqlServer.Management.Smo. . :: . .DatabasePermissionSet
A DatabasePermissionSet object that includes the new permission.