Show / Hide Table of Contents

SetRandomGuid Method

SetRandomGuid()

Set the Guid with a random, 16-byte value.

C#
public void SetRandomGuid()

Remarks

This method will use the random number generator built by CryptographyProviders to generate 16 random bytes as the new GUID.

If there is a GUID value already in this object, this method will overwrite it.

In this article
Back to top Generated by DocFX