SessionChangeDescription.Equals Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Determines whether the specified object is equal to the current session change description.

Namespace:   System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

public override bool Equals(
	object obj


Type: System.Object

The object to compare to the current SessionChangeDescription structure.

Return Value

Type: System.Boolean

true if obj is equal to the current SessionChangeDescription structure; otherwise, false.

The return value is false if obj is not a SessionChangeDescription or if it is null. Equality is determined by comparing the Reason and SessionId properties of the specified SessionChangeDescription structure to the Reason and SessionId properties of the current SessionChangeDescription structure. The two structures are considered equal if their properties are equal.

.NET Framework
Available since 2.0
Return to top