SPPolicyRole.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 SPPolicyRole
Dim o As Object
Dim returnValue As Boolean
returnValue = instance.Equals(o)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public override bool Equals(
Object o
)
Parameters
o
Type: System.ObjectThe object to compare.
Return value
Type: System.Boolean
Returns true if the object is a SPSecureBinding and the port is the same as this instance; otherwise, false.