Condividi tramite


Operatore Equality

Creates a server permission set by performing an equality operation on two ServerPermission objects.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Shared Operator = ( _
    p1 As ServerPermission, _
    p2 As ServerPermission _
) As Boolean
'Utilizzo
Dim p1 As ServerPermission
Dim p2 As ServerPermission
Dim returnValue As Boolean

returnValue = (p1 = p2)
public static bool operator ==(
    ServerPermission p1,
    ServerPermission p2
)
public:
static bool operator ==(
    ServerPermission^ p1, 
    ServerPermission^ p2
)
static let inline (=)
        p1:ServerPermission * 
        p2:ServerPermission  : bool
JScript supporta l'utilizzo di operatori di overload , ma non la dichiarazione di nuovi operatori.

Parametri

Valore restituito

Tipo: System. . :: . .Boolean
A ServerPermissionSet object that specifies a set of server permissions.