다음을 통해 공유


SPPolicy.Equals method

Overwrite the equals so that when the object gets compared during restore we get a proper comparison operator.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Overrides Function Equals ( _
    o As Object _
) As Boolean
'Usage
Dim instance As SPPolicy
Dim o As Object
Dim returnValue As Boolean

returnValue = instance.Equals(o)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public override bool Equals(
    Object o
)

Parameters

Return value

Type: System.Boolean
Returns true if the object is a SPSecureBinding and the port is the same as this instance; otherwise, false.

See also

Reference

SPPolicy class

SPPolicy members

Microsoft.SharePoint.Administration namespace