CustomizableString.Equals method (Object)
Supports the .NET infrastructure and normally is not used.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Overrides Function Equals ( _
obj As Object _
) As Boolean
'Usage
Dim instance As CustomizableString
Dim obj As Object
Dim returnValue As Boolean
returnValue = instance.Equals(obj)
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public override bool Equals(
Object obj
)
Parameters
obj
Type: System.ObjectThe current object.
Return value
Type: System.Boolean
false
Exceptions
Exception | Condition |
---|---|
NotSupportedException | The object was compared with another instance of a CustomizableString object, which is not supported. |
Remarks
The return value is always false.
There is not a well-defined criterion for comparing two instances of the CustomizableString object The recommended alternative is to compare the Value property instead.
Comparisons with a a null reference (Nothing in Visual Basic) reference and unrelated types are supported, and always return false. Comparisons with a CustomizableString instance throw a NotSupportedException exception.