UniqueId Class
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.
A unique identifier optimized for Guids.
public ref class UniqueId
public class UniqueId
type UniqueId = class
Public Class UniqueId
- Inheritance
-
UniqueId
Remarks
This class can hold any string value, but has optimizations for dealing with Guids.
Constructors
UniqueId() |
Creates a new instance of this class with a new, unique Guid. |
UniqueId(Byte[]) |
Creates a new instance of this class using a byte array that represents a Guid. |
UniqueId(Byte[], Int32) |
Creates a new instance of this class starting from an offset within a |
UniqueId(Char[], Int32, Int32) |
Creates a new instance of this class starting from an offset within a |
UniqueId(Guid) |
Creates a new instance of this class using a Guid. |
UniqueId(String) |
Creates a new instance of this class using a string. |
Properties
CharArrayLength |
Gets the length of the string representation of the UniqueId. |
IsGuid |
Methods
Equals(Object) |
Tests whether an object equals this UniqueId. |
GetHashCode() |
Creates a hash-code representation of this UniqueId. |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToCharArray(Char[], Int32) |
Puts the UniqueId value into a |
ToString() |
Displays the UniqueId value in string format. |
TryGetGuid(Byte[], Int32) |
Tries to get the value of the UniqueId as a Guid and store it in the given byte array at the specified offset. |
TryGetGuid(Guid) |
Operators
Equality(UniqueId, UniqueId) |
Overrides the equality operator to test for equality of two UniqueIds. |
Inequality(UniqueId, UniqueId) |
Overrides the equality operator to test for inequality of two UniqueIds. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기