DatabasePermissionSet.Equality(DatabasePermissionSet, DatabasePermissionSet) DatabasePermissionSet.Equality(DatabasePermissionSet, DatabasePermissionSet) DatabasePermissionSet.Equality(DatabasePermissionSet, DatabasePermissionSet) Operator

Definition

Determines whether two DatabasePermissionSet objects are equal.

public:
 static bool operator ==(Microsoft::SqlServer::Management::Smo::DatabasePermissionSet ^ p1, Microsoft::SqlServer::Management::Smo::DatabasePermissionSet ^ p2);
public static bool operator == (Microsoft.SqlServer.Management.Smo.DatabasePermissionSet p1, Microsoft.SqlServer.Management.Smo.DatabasePermissionSet p2);
Public Shared Operator == (p1 As DatabasePermissionSet, p2 As DatabasePermissionSet) As Boolean
Parameters
p1
DatabasePermissionSet DatabasePermissionSet DatabasePermissionSet

A DatabasePermissionSet object that specifies the database permission.

p2
DatabasePermissionSet DatabasePermissionSet DatabasePermissionSet

A DatabasePermissionSet object that specifies the database permission.

Returns

A Boolean object that specifies whether the two specified objects are equal.

If True, the two specified objects are equal.

If False, the two specified objects are not equal.

Examples

Granting, Revoking, and Denying Permissions

Applies to