Share via


ISharePointProjectLogger.WriteLine Method

Definition

Overloads

WriteLine(String, LogCategory)

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

WriteLine(String, LogCategory, Int32)

Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory

WriteLine(String, LogCategory, String)

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

WriteLine(String, LogCategory, String, Int32)

Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.

WriteLine(String, LogCategory, String, Int32, Int32)

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

WriteLine(String, LogCategory, String, Int32, Int32, Int32)

Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.

WriteLine(String, LogCategory, String, Int32, Int32, String)

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

WriteLine(String, LogCategory, String, Int32, Int32, String, Int32)

Log a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.

WriteLine(String, LogCategory)

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

public:
 void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::LogCategory category);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.LogCategory category);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.LogCategory -> unit
Public Sub WriteLine (message As String, category As LogCategory)

Parameters

message
String

The message text.

category
LogCategory

The message log category, specified by LogCategory.

Applies to

WriteLine(String, LogCategory, Int32)

Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory

public:
 void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::LogCategory category, int subcategoryId);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.LogCategory category, int subcategoryId);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.LogCategory * int -> unit
Public Sub WriteLine (message As String, category As LogCategory, subcategoryId As Integer)

Parameters

message
String

The message text.

category
LogCategory

The message log category.

subcategoryId
Int32

The message subcategory identifier.

Applies to

WriteLine(String, LogCategory, String)

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

public:
 void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::LogCategory category, System::String ^ helpKeyword);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.LogCategory category, string helpKeyword);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.LogCategory * string -> unit
Public Sub WriteLine (message As String, category As LogCategory, helpKeyword As String)

Parameters

message
String

The message text.

category
LogCategory

The message log category, specified by LogCategory.

helpKeyword
String

The Help keyword for the error.

Applies to

WriteLine(String, LogCategory, String, Int32)

Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.

public:
 void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::LogCategory category, System::String ^ helpKeyword, int subcategoryId);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.LogCategory category, string helpKeyword, int subcategoryId);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.LogCategory * string * int -> unit
Public Sub WriteLine (message As String, category As LogCategory, helpKeyword As String, subcategoryId As Integer)

Parameters

message
String

The message text.

category
LogCategory

The message log category.

helpKeyword
String

The help keyword for error.

subcategoryId
Int32

The message subcategory identifier.

Applies to

WriteLine(String, LogCategory, String, Int32, Int32)

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

public:
 void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::LogCategory category, System::String ^ filePath, int lineNumber, int columnNumber);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.LogCategory category, string filePath, int lineNumber, int columnNumber);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.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 message log category, specified by LogCategory.

filePath
String

The full path to the file with the error.

lineNumber
Int32

The line number where the error occurred.

columnNumber
Int32

The column number where the error occurred.

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, Int32)

Logs a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.

public:
 void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::LogCategory category, System::String ^ filePath, int lineNumber, int columnNumber, int subcategoryId);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.LogCategory category, string filePath, int lineNumber, int columnNumber, int subcategoryId);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.LogCategory * string * int * int * int -> unit
Public Sub WriteLine (message As String, category As LogCategory, filePath As String, lineNumber As Integer, columnNumber As Integer, subcategoryId As Integer)

Parameters

message
String

The message text.

category
LogCategory

The message log category.

filePath
String

The full path to file with error.

lineNumber
Int32

The line number of error.

columnNumber
Int32

The column number of error.

subcategoryId
Int32

The message subcategory identifier.

Applies to

WriteLine(String, LogCategory, String, Int32, Int32, String)

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

public:
 void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::LogCategory category, System::String ^ filePath, int lineNumber, int columnNumber, System::String ^ helpKeyword);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.LogCategory category, string filePath, int lineNumber, int columnNumber, string helpKeyword);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.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 message log category, specified by LogCategory.

filePath
String

The full path to the file with the error.

lineNumber
Int32

The line number where the error occurred.

columnNumber
Int32

The column number where the error occurred.

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.

Applies to

WriteLine(String, LogCategory, String, Int32, Int32, String, Int32)

Log a message to SharePoint Tools output pane and Error List depending on the specified LogCategory.

public:
 void WriteLine(System::String ^ message, Microsoft::VisualStudio::SharePoint::LogCategory category, System::String ^ filePath, int lineNumber, int columnNumber, System::String ^ helpKeyword, int subcategoryId);
public void WriteLine (string message, Microsoft.VisualStudio.SharePoint.LogCategory category, string filePath, int lineNumber, int columnNumber, string helpKeyword, int subcategoryId);
abstract member WriteLine : string * Microsoft.VisualStudio.SharePoint.LogCategory * string * int * int * string * int -> unit
Public Sub WriteLine (message As String, category As LogCategory, filePath As String, lineNumber As Integer, columnNumber As Integer, helpKeyword As String, subcategoryId As Integer)

Parameters

message
String

The message text.

category
LogCategory

The message log category.

filePath
String

The full path to file with error.

lineNumber
Int32

The line number of error.

columnNumber
Int32

The column number of error.

helpKeyword
String

The help keyword for error.

subcategoryId
Int32

The message subcategory identifier.

Applies to