ResolvedDiagnosticEvent.GetShortDescription 方法
取得已格式化的簡短描述,這DiagnosticEvent。
命名空間: Microsoft.VisualStudio.IntelliTrace
組件: Microsoft.IntelliTrace.11.0.0 (在 Microsoft.IntelliTrace.11.0.0.dll 中)
語法
'宣告
Public Function GetShortDescription As String
public string GetShortDescription()
public:
String^ GetShortDescription()
member GetShortDescription : unit -> string
public function GetShortDescription() : String
傳回值
型別:System.String
已格式化的簡短描述。
例外狀況
例外狀況 | 條件 |
---|---|
MissingMethodException | 可程式化的資料查詢無效,發生於當 |
TypeLoadException | 可程式化的資料查詢不正確。 發生這種情況時DataQueryType是ProgrammableDataQuery。 |
FileNotFoundException | 找不到可程式化的資料查詢。 發生這種情況時DataQueryType是ProgrammableDataQuery。 所指定的目錄ProgrammableDataQueryDirectory可能會不正確。 |
MemberAccessException | 可程式化的資料查詢不正確。 發生這種情況時DataQueryType是ProgrammableDataQuery。 |
TargetInvocationException | 可程式化的資料查詢會擲回例外狀況。 發生這種情況時DataQueryType是ProgrammableDataQuery。 |
BadImageFormatException | 可程式化的資料查詢無效DataQueryType是ProgrammableDataQuery。 |
備註
對於DataQuery,由與收集的資料組合在一起的簡短描述,格式字串格式化的簡短描述。 對於ProgrammableDataQuery,可程式化的資料查詢提供格式化的簡短描述。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。