共用方式為


ISharePointCommandContext.Logger 屬性

取得記錄服務,此記錄服務可讓您用來在 Visual Studio 中將訊息寫入 [輸出] 視窗或 [錯誤清單] 視窗。

命名空間:  Microsoft.VisualStudio.SharePoint.Commands
組件:  Microsoft.VisualStudio.SharePoint.Commands (在 Microsoft.VisualStudio.SharePoint.Commands.dll 中)

語法

'宣告
ReadOnly Property Logger As ISharePointCommandLogger
    Get
ISharePointCommandLogger Logger { get; }

屬性值

型別:Microsoft.VisualStudio.SharePoint.Commands.ISharePointCommandLogger
表示記錄服務的 ISharePointCommandLogger 執行個體。

.NET Framework 安全性

請參閱

參考

ISharePointCommandContext 介面

Microsoft.VisualStudio.SharePoint.Commands 命名空間