SessionChangeDescription.Equals Method (SessionChangeDescription)


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

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

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

public bool Equals(
	SessionChangeDescription changeDescription


Type: System.ServiceProcess.SessionChangeDescription

The SessionChangeDescription structure to compare to the current SessionChangeDescription structure.

Return Value

Type: System.Boolean

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

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