Share via


IVsaItem.ItemType Property

Gets the specified object's type, as determined by the IVsaItems.CreateItem method.

public: __property VSAITEMTYPE get_ItemType();
public VSAITEMTYPE ItemType {get;}
Public Property Get ItemType() As VSAITEMTYPE

Return Value

A type as enumerated by the VsaItemType enumeration.

Remarks

Depending on the return value of this property, the IVsaItem object can be cast to one of the derived types, as shown in the following table.

VsaItemType

Type

Reference

IVsaReferenceItem

AppGlobal

IvsaGlobalItem

Code

IVsaCodeItem

The following table shows the exception that the ItemType property can throw.

Exception Type

Condition

EngineClosed

The IVsaEngine.Close method has been called and the engine is closed.

See Also

Reference

IVsaItem Interface

VsaItemType