Partilhar via


SPPersistedObject.Equality Operator

Returns a Boolean value that indicates whether the two specified persisted objects are equal.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Shared Operator = ( _
    a As SPPersistedObject, _
    b As SPPersistedObject _
) As Boolean
'Usage
Dim a As SPPersistedObject
Dim b As SPPersistedObject
Dim returnValue As Boolean

returnValue = (a = b)
public static bool operator ==(
    SPPersistedObject a,
    SPPersistedObject b
)

Parameters

Return Value

Type: System.Boolean
true if the two persisted objects are equal; otherwise, false.

See Also

Reference

SPPersistedObject Class

SPPersistedObject Members

Microsoft.SharePoint.Administration Namespace