Share via


ISharePointCommandLogger.WriteLine Method (String, LogCategory, String, Int32, Int32)

Writes a message to the Output window or Error List window with the specified category and error location information.

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 _
)
void WriteLine(
    string message,
    LogCategory category,
    string filePath,
    int lineNumber,
    int columnNumber
)

Parameters

  • message
    Type: String

    The message text.

  • filePath
    Type: String

    The full path to the file with the error or warning.

  • lineNumber
    Type: Int32

    The line number of the error or warning.

  • columnNumber
    Type: Int32

    The column number of the error or warning.

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

See Also

Reference

ISharePointCommandLogger Interface

WriteLine Overload

Microsoft.VisualStudio.SharePoint.Commands Namespace