DatabasePermission.Equality(DatabasePermission, DatabasePermission) DatabasePermission.Equality(DatabasePermission, DatabasePermission) DatabasePermission.Equality(DatabasePermission, DatabasePermission) Operator

Definition

Compares two DatabasePermission objects in an equality operation.

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

A DatabasePermission object that specifies the database permissions.

p2
DatabasePermission DatabasePermission DatabasePermission

A DatabasePermission object that specifies the database permissions.

Returns

A Boolean value that specifies whether the objects are not equal.

If True, the objects are equal. Otherwise, False.

Examples

Granting, Revoking, and Denying Permissions

Applies to