mozilla

Revision 190767 of NPN_HasProperty

  • Revision slug: NPN_HasProperty
  • Revision title: NPN_HasProperty
  • Revision id: 190767
  • Created:
  • Creator: Jst
  • Is current revision? No
  • Comment /* Parameters */
Tags: 

Revision Content

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>
</p><p>
</p>
<h3 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 name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
bool NPN_HasProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName);
</pre>
<h3 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 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