GuidToolsCreate(Guid, String, Int32) Method

Creates a name-based UUID using the algorithm from RFC 4122 §4.3.

Definition

Namespace: Metas.UncLib.Core.Unc
Assembly: Metas.UncLib.Core (in Metas.UncLib.Core.dll) Version: 2.8.9053.20192
C#
public static Guid Create(
	Guid namespaceId,
	string name,
	int version
)

Parameters

namespaceId  Guid
The ID of the namespace.
name  String
The name (within that namespace).
version  Int32
The version number of the UUID to create; this value must be either 3 (for MD5 hashing) or 5 (for SHA-1 hashing).

Return Value

Guid
A UUID derived from the namespace and name.

See Also