SessionChangeDescription.Equals 方法
定义
确定两个会话更改说明是否相等。Determines whether two session change descriptions are equal.
重载
| 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)
确定指定对象是否等于当前会话更改说明。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
参数
- obj
- Object
与当前的 SessionChangeDescription 结构比较的对象。The object to compare to the current SessionChangeDescription structure.
返回
如果 obj 等于当前的 SessionChangeDescription 结构,则为 true;否则为 false。true if obj is equal to the current SessionChangeDescription structure; otherwise, false.
注解
如果不是或,则返回值为 false obj SessionChangeDescription null 。The return value is false if obj is not a SessionChangeDescription or if it is null. 通过将 Reason SessionId 指定结构的和属性与 SessionChangeDescription Reason 当前结构的和属性进行比较来 SessionId SessionChangeDescription 确定相等性。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.
适用于
Equals(SessionChangeDescription)
确定指定会话更改说明是否等于当前会话更改说明。Determines whether the specified session change description is equal to the current session change description.
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
参数
- changeDescription
- SessionChangeDescription
要与当前 SessionChangeDescription 结构进行比较的 SessionChangeDescription 结构。The SessionChangeDescription structure to compare to the current SessionChangeDescription structure.
返回
如果 changeDescription 等于当前的 SessionChangeDescription 结构,则为 true;否则为 false。true if changeDescription is equal to the current SessionChangeDescription structure; otherwise, false.
注解
通过将 Reason SessionId 指定结构的和属性与 SessionChangeDescription Reason 当前结构的和属性进行比较来 SessionId SessionChangeDescription 确定相等性。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.