Partilhar 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)
Available in Sandboxed Solutions: No

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