ISharePointCommandLogger.WriteLine 方法 (String, LogCategory)
使用指定的分類,將訊息寫入 [輸出] 視窗或 [錯誤清單] 視窗中。
命名空間: Microsoft.VisualStudio.SharePoint.Commands
組件: Microsoft.VisualStudio.SharePoint.Commands (在 Microsoft.VisualStudio.SharePoint.Commands.dll 中)
語法
'宣告
Sub WriteLine ( _
message As String, _
category As LogCategory _
)
void WriteLine(
string message,
LogCategory category
)
參數
- message
型別:System.String
訊息文字。
- category
型別:Microsoft.VisualStudio.SharePoint.Commands.LogCategory
訊息的分類。此會指定訊息是出現在 [輸出] 視窗或 [錯誤清單] 視窗 (或皆出現),以及會出現在 [錯誤清單] 視窗中的哪個位置。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。