ExtendedCriticalBuildMessageEventArgs Constructors

Definition

Overloads

ExtendedCriticalBuildMessageEventArgs(String)

Source:
ExtendedCriticalBuildMessageEventArgs.cs

This constructor specifies only type of extended data.

C#
public ExtendedCriticalBuildMessageEventArgs(string type);

Parameters

type
String

Type of ExtendedType.

Applies to

MSBuild 17 and MSBuild (.NET Core) 17
Product Versions
MSBuild 17
MSBuild (.NET Core) 17

ExtendedCriticalBuildMessageEventArgs(String, String, String, String, Int32, Int32, Int32, Int32, String, String, String)

Source:
ExtendedCriticalBuildMessageEventArgs.cs

This constructor allows all event data to be initialized

C#
public ExtendedCriticalBuildMessageEventArgs(string type, string? subcategory, string? code, string? file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, string? message, string? helpKeyword, string? senderName);

Parameters

type
String

Type of ExtendedType.

subcategory
String

event subcategory

code
String

event code

file
String

file associated with the event

lineNumber
Int32

line number (0 if not applicable)

columnNumber
Int32

column number (0 if not applicable)

endLineNumber
Int32

end line number (0 if not applicable)

endColumnNumber
Int32

end column number (0 if not applicable)

message
String

text message

helpKeyword
String

help keyword

senderName
String

name of event sender

Applies to

MSBuild 17 and MSBuild (.NET Core) 17
Product Versions
MSBuild 17
MSBuild (.NET Core) 17

ExtendedCriticalBuildMessageEventArgs(String, String, String, String, Int32, Int32, Int32, Int32, String, String, String, DateTime)

Source:
ExtendedCriticalBuildMessageEventArgs.cs

This constructor allows timestamp to be set

C#
public ExtendedCriticalBuildMessageEventArgs(string type, string? subcategory, string? code, string? file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, string? message, string? helpKeyword, string? senderName, DateTime eventTimestamp);

Parameters

type
String

Type of ExtendedType.

subcategory
String

event subcategory

code
String

event code

file
String

file associated with the event

lineNumber
Int32

line number (0 if not applicable)

columnNumber
Int32

column number (0 if not applicable)

endLineNumber
Int32

end line number (0 if not applicable)

endColumnNumber
Int32

end column number (0 if not applicable)

message
String

text message

helpKeyword
String

help keyword

senderName
String

name of event sender

eventTimestamp
DateTime

custom timestamp for the event

Applies to

MSBuild 17 and MSBuild (.NET Core) 17
Product Versions
MSBuild 17
MSBuild (.NET Core) 17

ExtendedCriticalBuildMessageEventArgs(String, String, String, String, Int32, Int32, Int32, Int32, String, String, String, DateTime, Object[])

Source:
ExtendedCriticalBuildMessageEventArgs.cs

This constructor allows timestamp to be set

C#
public ExtendedCriticalBuildMessageEventArgs(string type, string? subcategory, string? code, string? file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, string? message, string? helpKeyword, string? senderName, DateTime eventTimestamp, params object[]? messageArgs);

Parameters

type
String

Type of ExtendedType.

subcategory
String

event subcategory

code
String

event code

file
String

file associated with the event

lineNumber
Int32

line number (0 if not applicable)

columnNumber
Int32

column number (0 if not applicable)

endLineNumber
Int32

end line number (0 if not applicable)

endColumnNumber
Int32

end column number (0 if not applicable)

message
String

text message

helpKeyword
String

help keyword

senderName
String

name of event sender

eventTimestamp
DateTime

custom timestamp for the event

messageArgs
Object[]

message arguments

Applies to

MSBuild 17 and MSBuild (.NET Core) 17
Product Versions
MSBuild 17
MSBuild (.NET Core) 17