Creates a name-based UUID using the algorithm from RFC 4122 §4.3.
public static Guid Create(Guid namespaceId, byte[] nameBytes)
parameter | description |
---|---|
namespaceId | The ID of the namespace. |
nameBytes | The name (within that namespace). |
A UUID derived from the namespace and name.
Creates a name-based UUID using the algorithm from RFC 4122 §4.3.
public static Guid Create(Guid namespaceId, string name)
parameter | description |
---|---|
namespaceId | The ID of the namespace. |
name | The name (within that namespace). |
A UUID derived from the namespace and name.
Creates a name-based UUID using the algorithm from RFC 4122 §4.3.
public static Guid Create(Guid namespaceId, byte[] nameBytes, int version)
parameter | description |
---|---|
namespaceId | The ID of the namespace. |
nameBytes | The name (within that namespace). |
version | The version number of the UUID to create; this value must be either 3 (for MD5 hashing) or 5 (for SHA-1 hashing). |
A UUID derived from the namespace and name.
Creates a name-based UUID using the algorithm from RFC 4122 §4.3.
public static Guid Create(Guid namespaceId, string name, int version)
parameter | description |
---|---|
namespaceId | The ID of the namespace. |
name | The name (within that namespace). |
version | The version number of the UUID to create; this value must be either 3 (for MD5 hashing) or 5 (for SHA-1 hashing). |
A UUID derived from the namespace and name.