Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Creates an IHTMLDOMAttribute interface with a specified IHTMLDOMAttribute2::name.
![]() |
Syntax
HRESULT retVal = object.createAttribute(bstrattrName, ppattribute);
Parameters
bstrattrName [in]
Type: BSTRA BSTR that sets the IHTMLDOMAttribute2::name property.
ppattribute [out, retval]
Type: IHTMLDOMAttributeA pointer variable that receives an IHTMLDOMAttribute2 pointer.
Exceptions
| Exception | Condition |
|---|---|
| InvalidCharacterError 5 | If the specified name contains an illegal character. Versions earlier than Internet Explorer 10 will throw the exception as INVALID_CHARACTER_ERR. |
Standards information
Remarks
This method will fail if the bstrattrName parameter value contains invalid (non-Unicode Transformation Format (UTF)-16) characters.
IHTMLDocument5::createAttribute was introduced in Microsoft Internet Explorer 6.
.png)