Share via


SPPrefix.Equals method

Determines whether the prefix and the specified object, which must also be a string object, have the same value, but when the comparison occurs during a restore operation, this method obtains an appropriate 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 SPPrefix
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
Boolean
true if the object is an SPPrefix object and the name and prefix type are the same as this instance; otherwise, false.

See also

Reference

SPPrefix class

SPPrefix members

Microsoft.SharePoint.Administration namespace