We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Home > @microsoft/sp-core-library > Guid > tryParse
Attempts to parse the input string to construct a new Guid object. If the string cannot be parsed, then undefined is returned.
Signature:
static tryParse(guid: string | undefined | null): Guid | undefined;
Returns:
Guid | undefined
The Guid object, or undefined if the string could not be parsed.
Example syntaxes accepted by this function:
"d5369f3bbd7a412a9c0f7f0650bb5489"
"d5369f3b-bd7a-412a-9c0f-7f0650bb5489"
"{d5369f3b-bd7a-412a-9c0f-7f0650bb5489}"
"/Guid(d5369f3b-bd7a-412a-9c0f-7f0650bb5489)/"
Home