Gets the IDataElements that are collected by using this DiagnosticEvent.
Namespace: Microsoft.VisualStudio.IntelliTrace
Assembly: Microsoft.VisualStudio.IntelliTrace (in Microsoft.VisualStudio.IntelliTrace.dll)
Syntax
声明
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>
Return Value
Type: System.Collections.Generic.IList<IDataElement>
A list of IDataElements, one for each element that is collected.
Exceptions
| Exception | Condition |
|---|---|
| MissingMethodException | The programmable data query is invalid, which occurs when |
| TypeLoadException | The programmable data query is invalid. This occurs when DataQueryType is ProgrammableDataQuery. |
| FileNotFoundException | The programmable data query could not be found. This occurs when DataQueryType is ProgrammableDataQuery. The directory specified by ProgrammableDataQueryDirectory may be incorrect. |
| MemberAccessException | The programmable data query is invalid. This occurs when DataQueryType is ProgrammableDataQuery. |
| TargetInvocationException | The programmable data query threw an exception. This occurs when DataQueryType is ProgrammableDataQuery. |
| BadImageFormatException | The programmable data query is invalid DataQueryType is ProgrammableDataQuery. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.