Share via


setType Method1

 

Sets the type of a specific attribute. This is a user-created type if it is has not been declared in the document type definition (DTD).

Visual Basic Implementation Syntax

Sub setType(ByVal nIndex As Long, ByVal strType As String)  

Visual Basic Usage Syntax

oIMXAttributes.setType
(nIndex, strType)  

C/C++ Syntax

HRESULT setType(  
    [in] int nIndex,   
    [in] BSTR strType);  

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), used to specify the attribute.

strType
A string representing the attribute type.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

IMXAttributes Interface