/// <summary>
/// Gets the property ID associated with the name.
/// </summary>
/// <remarks>
/// <para>
/// Property IDs are specific to a context and cannot be used across contexts.
/// </para>
/// <para>
/// Requires an active script context.
/// </para>
/// </remarks>
/// <param name="name">
/// The name of the property ID to get or create. The name may consist of only digits.
/// </param>
/// <returns>The property ID in this runtime for the given name.</returns>
public static JavaScriptPropertyId FromString(string name)
{
JavaScriptPropertyId id;
Native.ThrowIfError(Native.JsGetPropertyIdFromName(name, out id));
return(id);
}