This repository was archived by the owner on Oct 23, 2021. It is now read-only.
-
Couldn't load subscription status.
- Fork 5
sp core library.guid.parse
John Nguyen edited this page Apr 22, 2021
·
2 revisions
Home > @microsoft/sp-core-library > Guid > parse
Parses the input string to construct a new Guid object. If the string cannot be parsed, then an error is thrown.
Signature:
static parse(guidString: string | undefined | null): Guid;| Parameter | Type | Description |
|---|---|---|
| guidString | string | undefined | null |
Returns:
Guid
A valid Guid object
Example syntaxes accepted by this function:
-
"d5369f3bbd7a412a9c0f7f0650bb5489" -
"d5369f3b-bd7a-412a-9c0f-7f0650bb5489" -
"{d5369f3b-bd7a-412a-9c0f-7f0650bb5489}" -
"/Guid(d5369f3b-bd7a-412a-9c0f-7f0650bb5489)/"