Equals Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Compares two IP addresses.
Namespace: System.Net
Assembly: System (in System.dll)
Syntax
'Declaration
Public Overrides Function Equals ( _
obj As Object _
) As Boolean
public override bool Equals(
Object obj
)
public:
virtual bool Equals(
Object^ obj
) override
abstract Equals :
obj:Object -> bool
override Equals :
obj:Object -> bool
public override function Equals(
obj : Object
) : boolean
Parameters
- obj
Type: System. . :: . .Object
An IPAddress instance to compare to the current instance.
Return Value
Type: System. . :: . .Boolean
true if the two addresses are equal; otherwise, false.
Remarks
The Equals method compares the current IPAddress instance with the comparand parameter and returns true if the two instances contain the same IP address.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.