Share via


GuidHelper.CreateNewGuid Method

Definition

Creates a new, unique Guid.

public:
 static Platform::Guid CreateNewGuid();
 static winrt::guid CreateNewGuid();
public static Guid CreateNewGuid();
function createNewGuid()
Public Shared Function CreateNewGuid () As Guid

Returns

Guid

Platform::Guid

winrt::guid

A new, unique Guid.

Examples

var newGuid = Windows.Foundation.GuidHelper.createNewGuid();

Remarks

In JavaScript, Guid is projected as a string.

Applies to