SessionChangeDescription.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether two session change descriptions are equal.
Overloads
Equals(Object) |
Determines whether the specified object is equal to the current session change description. |
Equals(SessionChangeDescription) |
Determines whether the specified session change description is equal to the current session change description. |
Equals(Object)
- Source:
- SessionChangeDescription.cs
- Source:
- SessionChangeDescription.cs
Determines whether the specified object is equal to the current session change description.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object? obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
Parameters
- obj
- Object
The object to compare to the current SessionChangeDescription structure.
Returns
true
if obj
is equal to the current SessionChangeDescription structure; otherwise, false
.
Remarks
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.
Applies to
Equals(SessionChangeDescription)
- Source:
- SessionChangeDescription.cs
- Source:
- SessionChangeDescription.cs
Determines whether the specified session change description is equal to the current session change description.
public:
virtual bool Equals(System::ServiceProcess::SessionChangeDescription changeDescription);
public:
bool Equals(System::ServiceProcess::SessionChangeDescription changeDescription);
public bool Equals (System.ServiceProcess.SessionChangeDescription changeDescription);
override this.Equals : System.ServiceProcess.SessionChangeDescription -> bool
Public Function Equals (changeDescription As SessionChangeDescription) As Boolean
Parameters
- changeDescription
- SessionChangeDescription
The SessionChangeDescription structure to compare to the current SessionChangeDescription structure.
Returns
true
if changeDescription
is equal to the current SessionChangeDescription structure; otherwise, false
.
Implements
Remarks
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.