ISharePointCommandLogger.WriteLine Method (String, LogCategory, String, Int32, Int32, String)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Writes a message to the Output window or Error List window with the specified category, error location information, and Help keyword.
Namespace: Microsoft.VisualStudio.SharePoint.Commands
Assembly: Microsoft.VisualStudio.SharePoint.Commands (in Microsoft.VisualStudio.SharePoint.Commands.dll)
Syntax
'Declaration
Sub WriteLine ( _
message As String, _
category As LogCategory, _
filePath As String, _
lineNumber As Integer, _
columnNumber As Integer, _
helpKeyword As String _
)
void WriteLine(
string message,
LogCategory category,
string filePath,
int lineNumber,
int columnNumber,
string helpKeyword
)
Parameters
message
Type: System.StringThe message text.
category
Type: Microsoft.VisualStudio.SharePoint.Commands.LogCategoryThe category of the message. This specifies whether the message appears in the Output window or Error List window (or both), and where the message appears in the Error List window.
filePath
Type: System.StringThe full path to the file with the error or warning.
lineNumber
Type: System.Int32The line number of the error or warning.
columnNumber
Type: System.Int32The column number of the error or warning.
helpKeyword
Type: System.StringThe Help keyword for the error.
Remarks
When Visual Studio writes to the IDE, such as the Error window, then the lineNumber and columnNumber values are zero-based, but when user code writes to the IDE, then the values are one-based. This means that if, for example, you specify a lineNumber of 10 and a columnNumber of 20 in your code, Visual Studio reports it as line 11 and column 21.
.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.