setLocalName Method

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

setLocalName Method

Sets the local name of a specific attribute.

[Visual Basic]

Implementation Syntax

Sub setLocalName(ByVal nIndex As Long, ByVal strLocalName As String)

Usage Syntax

oIMXAttributes.setLocalName(nIndex, strLocalName)
[C/C++]

Syntax

HRESULT setLocalName(
    [in] int nIndex, 
    [in] BSTR strLocalName);

Return Values

S_OK
The value returned if no errors are reported.
E_FAIL
There is only one specific fatal error for this IMXAttributes implementation: incorrect index (E_INVALIDARG). It may return a generic failure code, such as out-of-memory.

Parameters

nIndex
The attribute's index value (zero-based).
strLocalName
The local name of the attribute or, if there is none, an empty string.

To view reference material for Visual Basic or C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

Applies to: IMXAttributes Interface