IScriptNode :: CreateChildEntryIScriptNode:: CreateChildEntry
Ajoute une instance enfant de IScriptEntry
.Adds a child instance of IScriptEntry
.
SyntaxeSyntax
HRESULT CreateChildEntry(
ULONG isn,
DWORD dwCookie,
LPCOLESTR pszDelimiter,
IScriptEntry **ppse
);
ParamètresParameters
isn
[in] L’index de l’enfant de la page parente.[in] The index of the child in the parent.
dwCookie
[in] Une valeur définie par l’application est utilisée pour associer l’entrée de l’enfant à l’objet hôte.[in] An application-defined value used to associate the child entry with the host object.
pszDelimiter
[in] L’adresse du délimiteur de fin du bloc de script.[in] The address of the end-of-script-block delimiter. Pour l’analyse, l’hôte utilise généralement un délimiteur (par exemple, un double guillemet), pour détecter la fin du bloc de script.For parsing, the host typically uses a delimiter (such as two single quotation marks), to detect the end of the script block.
Le délimiteur permet le script de création de moteur pour fournir le prétraitement.The delimiter enables the script authoring engine to provide preprocessing. Par exemple, le moteur peut remplacer un guillemet simple avec deux guillemets simples à utiliser comme délimiteur.For example, the engine might replace a single quotation mark with two single quotation marks for use as a delimiter. Le moteur détermine comment le délimiteur est utilisé.The engine determines how the delimiter is used.
La valeur NULL si un délimiteur ne marque pas la fin du bloc de script.Set to NULL if a delimiter does not mark the end of the script block.
ppse
[out] L’adresse d’une variable qui reçoit un pointeur vers le IScriptEntry
interface de l’instance enfant.[out] The address of a variable that receives a pointer to the IScriptEntry
interface of the child instance.
Pour IScriptNode
les objets qui représentent une page Web, ce paramètre retourne une IScriptEntry
instance qui spécifie un bloc de script.For IScriptNode
objects that represent a Web page, this parameter returns an IScriptEntry
instance that specifies a script block.
Pour IScriptEntry
les objets qui représentent un bloc de script, ce paramètre retourne une IScriptEntry
instance qui spécifie un objet de fonction.For IScriptEntry
objects that represent a script block, this parameter returns an IScriptEntry
instance that specifies a function object.
Pour IScriptEntry
les objets qui représentent une fonction de l’objet, cette méthode échoue.For IScriptEntry
objects that represent a function object, this method fails.
Pour IScriptScriptlet
objets, cette méthode échoue.For IScriptScriptlet
objects, this method fails.
Valeur de retourReturn Value
Élément HRESULT
.An HRESULT
. Les valeurs possibles sont notamment celles figurant dans le tableau suivant.Possible values include, but are not limited to, those in the following table.
ValueValue | DescriptionDescription |
---|---|
S_OK |
La méthode a réussi.The method succeeded. |
NotesRemarks
Le IScriptNode
interface représente une page Web ou ses éléments.The IScriptNode
interface represents a Web page or its elements. Le IScriptEntry
interface (qui est dérivée de IScriptNode
) représente un bloc de script ou un objet de fonction.The IScriptEntry
interface (which is derived from IScriptNode
) represents either a script block or a function object. Le IScriptScriptlet
interface (qui est dérivée de IScriptEntry
) représente un gestionnaire d’événements.The IScriptScriptlet
interface (which is derived from IScriptEntry
) represents an event handler.
Voir aussiSee Also
IScriptNode (Interface) IScriptNode Interface
Interface IScriptEntryIScriptEntry Interface
Commentaires
Nous aimerions avoir votre avis. Choisissez le type d’avis que vous souhaitez fournir :
Notre système de commentaires est basé sur l’infrastructure de problèmes GitHub. Apprenez-en davantage sur notre blog.
Chargement du commentaire...