mozilla

Revision 190768 of NPN_HasProperty

  • Revision slug: NPN_HasProperty
  • Revision title: NPN_HasProperty
  • Revision id: 190768
  • Created:
  • Creator: Sheppy
  • Is current revision? Yes
  • Comment scripting template

Revision Content

{{ Np-plugin-scripting() }}

Summary

Determines whether or not the specified NPObject has a particular property.

Syntax

#include <npruntime.h>
 
bool NPN_HasProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName);

Parameters

The function has the following parameters:

<tt>npp</tt>
The NPP indicating which plugin instance is making the request.
<tt>npobj</tt>
The object on which to look for the property.
<tt>propertyName</tt>
A string identifier indicating the name of the property to look for.

Returns

true if the property exists on the specified object, otherwise false.

Revision Source

<p> {{ Np-plugin-scripting() }}
</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Determines whether or not the specified <code><a href="en/NPObject">NPObject</a></code> has a particular property.
</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
bool NPN_HasProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName);
</pre>
<h3 id="Parameters" name="Parameters">Parameters</h3>
<p>The function has the following parameters:
</p>
<dl><dt><tt>npp</tt>
</dt><dd>The <a href="en/NPP">NPP</a> indicating which plugin instance is making the request.
</dd><dt><tt>npobj</tt>
</dt><dd>The object on which to look for the property.
</dd><dt><tt>propertyName</tt>
</dt><dd>A string identifier indicating the name of the property to look for.
</dd></dl>
<h3 id="Returns" name="Returns">Returns</h3>
<p><code>true</code> if the property exists on the specified object, otherwise <code>false</code>.
</p>
Revert to this revision