Export (0) Print
Expand All

IVsaError.SourceItem Property

Gets a reference to the IVsaItem object that generated the error.

[Visual Basic]
ReadOnly Property SourceItem As IVsaItem
[C#]
IVsaItem SourceItem {get;}
[C++]
__property IVsaItem* get_SourceItem();
[JScript]
function get SourceItem() : IVsaItem;

Property Value

Returns a reference to the IVsaItem object that generated the error.

Remarks

The item itself may not contain the error. The item that is causing the error may be in an external item, such as an included file. The IVsaError.SourceMoniker property provides the moniker of the actual item that caused the error.

The following table shows the exceptions that the SourceItem property can throw.

Exception Type Condition
EngineClosed The Close method has been called and the engine is closed.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IVsaError Interface | IVsaError Members | Microsoft.Vsa Namespace | IVsaError.SourceMoniker

Show:
© 2014 Microsoft