Share via


SPAlternateUrl.Equals method

Compares two SPAlternateUrl objects to determine whether their incoming URLs match.

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

Syntax

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

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

Parameters

  • obj
    Type: System.Object

    An object that represents another alternate URL with which to compare the current alternate URL.

Return value

Type: System.Boolean
true if the two alternate URLs match, otherwise, false.

See also

Reference

SPAlternateUrl class

SPAlternateUrl members

Microsoft.SharePoint.Administration namespace