Guid.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.
Returns a value that indicates whether two instances of Guid represent the same value.
Overloads
Equals(Guid) |
Returns a value indicating whether this instance and a specified Guid object represent the same value. |
Equals(Object) |
Returns a value that indicates whether this instance is equal to a specified object. |
Equals(Guid)
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- Guid.cs
Returns a value indicating whether this instance and a specified Guid object represent the same value.
public:
virtual bool Equals(Guid g);
public bool Equals (Guid g);
override this.Equals : Guid -> bool
Public Function Equals (g As Guid) As Boolean
Parameters
- g
- Guid
An object to compare to this instance.
Returns
true
if g
is equal to this instance; otherwise, false
.
Implements
Remarks
Two Guid objects are equal if they have identical byte values.
This method performs slightly better than the Equals method because it does not have to box the g
parameter.
See also
Applies to
Equals(Object)
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- Guid.cs
Returns a value that indicates whether this instance is equal to a specified object.
public:
override bool Equals(System::Object ^ o);
public override bool Equals (object o);
public override bool Equals (object? o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean
Parameters
- o
- Object
The object to compare with this instance.
Returns
true
if o
is a Guid that has the same value as this instance; otherwise, false
.
Remarks
Two Guid objects are equal if they have identical byte values.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기