共用方式為


ResolvedDiagnosticEvent.GetData 方法

取得IDataElements 可以把這個所收集的DiagnosticEvent

命名空間:  Microsoft.VisualStudio.IntelliTrace
組件:  Microsoft.IntelliTrace.11.0.0 (在 Microsoft.IntelliTrace.11.0.0.dll 中)

語法

'宣告
Public Function GetData As IList(Of IDataElement)
public IList<IDataElement> GetData()
public:
IList<IDataElement^>^ GetData()
member GetData : unit -> IList<IDataElement> 
public function GetData() : IList<IDataElement>

傳回值

型別:System.Collections.Generic.IList<IDataElement>
一份IDataElements,而每個項目所收集的一個。

例外狀況

例外狀況 條件
MissingMethodException

可程式化的資料查詢無效,發生於當

DataQueryTypeProgrammableDataQuery

TypeLoadException

可程式化的資料查詢不正確。 發生這種情況時DataQueryTypeProgrammableDataQuery

FileNotFoundException

找不到可程式化的資料查詢。 發生這種情況時DataQueryTypeProgrammableDataQuery。 所指定的目錄ProgrammableDataQueryDirectory可能會不正確。

MemberAccessException

可程式化的資料查詢不正確。 發生這種情況時DataQueryTypeProgrammableDataQuery

TargetInvocationException

可程式化的資料查詢會擲回例外狀況。 發生這種情況時DataQueryTypeProgrammableDataQuery

BadImageFormatException

可程式化的資料查詢無效DataQueryTypeProgrammableDataQuery

.NET Framework 安全性

請參閱

參考

ResolvedDiagnosticEvent 類別

Microsoft.VisualStudio.IntelliTrace 命名空間