• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# JavaScriptPropertyId类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中JavaScriptPropertyId的典型用法代码示例。如果您正苦于以下问题:C# JavaScriptPropertyId类的具体用法?C# JavaScriptPropertyId怎么用?C# JavaScriptPropertyId使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



JavaScriptPropertyId类属于命名空间,在下文中一共展示了JavaScriptPropertyId类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: JsHasProperty

 internal static extern JavaScriptErrorCode JsHasProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, out bool hasProperty);
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:1,代码来源:Native.cs


示例2: JsGetOwnPropertyDescriptor

 internal static extern JavaScriptErrorCode JsGetOwnPropertyDescriptor(JavaScriptValue obj, JavaScriptPropertyId propertyId, out JavaScriptValue propertyDescriptor);
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:1,代码来源:Native.cs


示例3: JsSetProperty

 internal static extern JavaScriptErrorCode JsSetProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, JavaScriptValue value, bool useStrictRules);
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:1,代码来源:Native.cs


示例4: JsGetPropertyNameFromId

 internal static extern JavaScriptErrorCode JsGetPropertyNameFromId(JavaScriptPropertyId propertyId, out string name);
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:1,代码来源:Native.cs


示例5: JsGetProperty

 internal static extern JavaScriptErrorCode JsGetProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, out JavaScriptValue value);
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:1,代码来源:Native.cs


示例6: GetOwnPropertyDescriptor

 /// <summary>
 ///     Gets a property descriptor for an object's own property.
 /// </summary>
 /// <remarks>
 ///     Requires an active script context.
 /// </remarks>
 /// <param name="propertyId">The ID of the property.</param>
 /// <returns>The property descriptor.</returns>
 public JavaScriptValue GetOwnPropertyDescriptor(JavaScriptPropertyId propertyId)
 {
     JavaScriptValue descriptorReference;
     Native.ThrowIfError(Native.JsGetOwnPropertyDescriptor(this, propertyId, out descriptorReference));
     return descriptorReference;
 }
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:14,代码来源:JavaScriptValue.cs


示例7: JsGetPropertyIdFromName

 internal static extern JavaScriptErrorCode JsGetPropertyIdFromName(string name, out JavaScriptPropertyId propertyId);
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:1,代码来源:Native.cs


示例8: JsGetPropertyIdType

 internal static extern JavaScriptErrorCode JsGetPropertyIdType(JavaScriptPropertyId propertyId, out JavaSciptPropertyIdType propertyIdType);
开发者ID:scaPEGoatno,项目名称:SiteD,代码行数:1,代码来源:Native.cs


示例9: JsGetSymbolFromPropertyId

 internal static extern JavaScriptErrorCode JsGetSymbolFromPropertyId(JavaScriptPropertyId propertyId, out JavaScriptValue symbol);
开发者ID:scaPEGoatno,项目名称:SiteD,代码行数:1,代码来源:Native.cs


示例10: DeleteProperty

 /// <summary>
 ///     Deletes an object's property.
 /// </summary>
 /// <remarks>
 ///     Requires an active script context.
 /// </remarks>
 /// <param name="propertyId">The ID of the property.</param>
 /// <param name="useStrictRules">The property set should follow strict mode rules.</param>
 /// <returns>Whether the property was deleted.</returns>
 public JavaScriptValue DeleteProperty(JavaScriptPropertyId propertyId, bool useStrictRules)
 {
     JavaScriptValue returnReference;
     Native.ThrowIfError(Native.JsDeleteProperty(this, propertyId, useStrictRules, out returnReference));
     return returnReference;
 }
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:15,代码来源:JavaScriptValue.cs


示例11: DefineProperty

 /// <summary>
 ///     Defines a new object's own property from a property descriptor.
 /// </summary>
 /// <remarks>
 ///     Requires an active script context.
 /// </remarks>
 /// <param name="propertyId">The ID of the property.</param>
 /// <param name="propertyDescriptor">The property descriptor.</param>
 /// <returns>Whether the property was defined.</returns>
 public bool DefineProperty(JavaScriptPropertyId propertyId, JavaScriptValue propertyDescriptor)
 {
     bool result;
     Native.ThrowIfError(Native.JsDefineProperty(this, propertyId, propertyDescriptor, out result));
     return result;
 }
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:15,代码来源:JavaScriptValue.cs


示例12: SetProperty

 /// <summary>
 ///     Sets an object's property.
 /// </summary>
 /// <remarks>
 ///     Requires an active script context.
 /// </remarks>
 /// <param name="id">The ID of the property.</param>
 /// <param name="value">The new value of the property.</param>
 /// <param name="useStrictRules">The property set should follow strict mode rules.</param>
 public void SetProperty(JavaScriptPropertyId id, JavaScriptValue value, bool useStrictRules)
 {
     Native.ThrowIfError(Native.JsSetProperty(this, id, value, useStrictRules));
 }
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:13,代码来源:JavaScriptValue.cs


示例13: GetProperty

 /// <summary>
 ///     Gets an object's property.
 /// </summary>
 /// <remarks>
 ///     Requires an active script context.
 /// </remarks>
 /// <param name="id">The ID of the property.</param>
 /// <returns>The value of the property.</returns>
 public JavaScriptValue GetProperty(JavaScriptPropertyId id)
 {
     JavaScriptValue propertyReference;
     Native.ThrowIfError(Native.JsGetProperty(this, id, out propertyReference));
     return propertyReference;
 }
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:14,代码来源:JavaScriptValue.cs


示例14: HasProperty

 /// <summary>
 ///     Determines whether an object has a property.
 /// </summary>
 /// <remarks>
 ///     Requires an active script context.
 /// </remarks>
 /// <param name="propertyId">The ID of the property.</param>
 /// <returns>Whether the object (or a prototype) has the property.</returns>
 public bool HasProperty(JavaScriptPropertyId propertyId)
 {
     bool hasProperty;
     Native.ThrowIfError(Native.JsHasProperty(this, propertyId, out hasProperty));
     return hasProperty;
 }
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:14,代码来源:JavaScriptValue.cs


示例15: JsDeleteProperty

 internal static extern JavaScriptErrorCode JsDeleteProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, bool useStrictRules, out JavaScriptValue result);
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:1,代码来源:Native.cs


示例16: JsGetPropertyIdFromSymbol

 internal static extern JavaScriptErrorCode JsGetPropertyIdFromSymbol(JavaScriptValue symbol, out JavaScriptPropertyId propertyId);
开发者ID:scaPEGoatno,项目名称:SiteD,代码行数:1,代码来源:Native.cs


示例17: JsDefineProperty

 internal static extern JavaScriptErrorCode JsDefineProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, JavaScriptValue propertyDescriptor, out bool result);
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:1,代码来源:Native.cs


示例18: JsGetPropertyNameFromId

 internal static extern JavaScriptErrorCode JsGetPropertyNameFromId(JavaScriptPropertyId propertyId, out IntPtr buffer);
开发者ID:marcthomas,项目名称:MsieJavaScriptEngine,代码行数:1,代码来源:Native.cs



注:本文中的JavaScriptPropertyId类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# JavaScriptSerializer类代码示例发布时间:2022-05-24
下一篇:
C# Java类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap