Method NewNameBasedV5
NewNameBasedV5(Uuid, String)
Returns a new
Uuid version 5 (RFC 4122 variant) instance with a name-based value, created
from the SHA-1 hash of a given namespace UUID and an arbitrary name string.
The same namespace and name combination will always yield the same UUID.
Declaration
public static Uuid NewNameBasedV5(Uuid namespace, string name)
Parameters
Returns
Type |
Description |
Uuid |
A new version 5 Uuid instance based on the provided namespace and name. |
Exceptions
NewNameBasedV5(Uuid, Byte[])
Returns a new
Uuid version 5 (RFC 4122 variant) instance with a name-based value, created
from the SHA-1 hash of a given namespace UUID and an arbitrary name byte array.
The same namespace and name combination will always yield the same UUID.
Declaration
public static Uuid NewNameBasedV5(Uuid namespace, byte[] name)
Parameters
Type |
Name |
Description |
Uuid |
namespace |
|
Byte[] |
name |
|
Returns
Type |
Description |
Uuid |
A new version 5 Uuid instance based on the provided namespace and name. |
Exceptions