Partager via


ISharePointProjectLogger.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.]

Logs a message to the SharePoint Tools Output window and Error List depending on the specified LogCategory.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.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

  • filePath
    Type: System.String

    The full path to the file with the error.

  • lineNumber
    Type: System.Int32

    The line number where the error occurred.

  • columnNumber
    Type: System.Int32

    The column number where the error occurred.

  • helpKeyword
    Type: System.String

    The 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

See Also

Reference

ISharePointProjectLogger Interface

WriteLine Overload

Microsoft.VisualStudio.SharePoint Namespace