ISharePointCommandLogger.WriteLine Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteLine(String, LogCategory) |
Writes a message to the Output window or Error List window with the specified category. |
WriteLine(String, LogCategory, String) |
Writes a message to the Output window or Error List window with the specified category and Help keyword. |
WriteLine(String, LogCategory, String, Int32, Int32) |
Writes a message to the Output window or Error List window with the specified category and error location information. |
WriteLine(String, LogCategory, String, Int32, Int32, String) |
Writes a message to the Output window or Error List window with the specified category, error location information, and Help keyword. |
WriteLine(String, LogCategory)
Writes a message to the Output window or Error List window with the specified category.
public:
void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::Commands::LogCategory category);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.Commands.LogCategory category);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.Commands.LogCategory -> unit
Public Sub WriteLine (message As String, category As LogCategory)
Parameters
- message
- String
The message text.
- category
- LogCategory
The 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.
Applies to
WriteLine(String, LogCategory, String)
Writes a message to the Output window or Error List window with the specified category and Help keyword.
public:
void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::Commands::LogCategory category, System::String ^ helpKeyword);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.Commands.LogCategory category, string helpKeyword);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.Commands.LogCategory * string -> unit
Public Sub WriteLine (message As String, category As LogCategory, helpKeyword As String)
Parameters
- message
- String
The message text.
- category
- LogCategory
The 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.
- helpKeyword
- String
The Help keyword for the error.
Applies to
WriteLine(String, LogCategory, String, Int32, Int32)
Writes a message to the Output window or Error List window with the specified category and error location information.
public:
void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::Commands::LogCategory category, System::String ^ filePath, int lineNumber, int columnNumber);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.Commands.LogCategory category, string filePath, int lineNumber, int columnNumber);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.Commands.LogCategory * string * int * int -> unit
Public Sub WriteLine (message As String, category As LogCategory, filePath As String, lineNumber As Integer, columnNumber As Integer)
Parameters
- message
- String
The message text.
- category
- LogCategory
The 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
- String
The full path to the file with the error or warning.
- lineNumber
- Int32
The line number of the error or warning.
- columnNumber
- 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.
Applies to
WriteLine(String, LogCategory, String, Int32, Int32, String)
Writes a message to the Output window or Error List window with the specified category, error location information, and Help keyword.
public:
void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::Commands::LogCategory category, System::String ^ filePath, int lineNumber, int columnNumber, System::String ^ helpKeyword);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.Commands.LogCategory category, string filePath, int lineNumber, int columnNumber, string helpKeyword);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.Commands.LogCategory * string * int * int * string -> unit
Public Sub WriteLine (message As String, category As LogCategory, filePath As String, lineNumber As Integer, columnNumber As Integer, helpKeyword As String)
Parameters
- message
- String
The message text.
- category
- LogCategory
The 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
- String
The full path to the file with the error or warning.
- lineNumber
- Int32
The line number of the error or warning.
- columnNumber
- Int32
The column number of the error or warning.
- helpKeyword
- 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.