ExtendedBuildMessageEventArgs Constructors

Definition

Overloads

ExtendedBuildMessageEventArgs(String)

Source:
ExtendedBuildMessageEventArgs.cs

This constructor specifies only type of extended data.

C#
public ExtendedBuildMessageEventArgs(string type);

Parameters

type
String

Type of ExtendedType.

Applies to

MSBuild 17 dan MSBuild (.NET Core) 17
Produk Versi
MSBuild 17
MSBuild (.NET Core) 17

ExtendedBuildMessageEventArgs(String, String, String, String, MessageImportance)

Source:
ExtendedBuildMessageEventArgs.cs

This constructor allows all event data to be initialized

C#
public ExtendedBuildMessageEventArgs(string type, string? message, string? helpKeyword, string? senderName, Microsoft.Build.Framework.MessageImportance importance);

Parameters

type
String

Type of ExtendedType.

message
String

text message

helpKeyword
String

help keyword

senderName
String

name of event sender

importance
MessageImportance

importance of the message

Applies to

MSBuild 17 dan MSBuild (.NET Core) 17
Produk Versi
MSBuild 17
MSBuild (.NET Core) 17

ExtendedBuildMessageEventArgs(String, String, String, String, MessageImportance, DateTime)

Source:
ExtendedBuildMessageEventArgs.cs

This constructor allows a timestamp to be set

C#
public ExtendedBuildMessageEventArgs(string type, string? message, string? helpKeyword, string? senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp);

Parameters

type
String

Type of ExtendedType.

message
String

text message

helpKeyword
String

help keyword

senderName
String

name of event sender

importance
MessageImportance

importance of the message

eventTimestamp
DateTime

Timestamp when event was created

Applies to

MSBuild 17 dan MSBuild (.NET Core) 17
Produk Versi
MSBuild 17
MSBuild (.NET Core) 17

ExtendedBuildMessageEventArgs(String, String, String, String, MessageImportance, DateTime, Object[])

Source:
ExtendedBuildMessageEventArgs.cs

This constructor allows a timestamp to be set

C#
public ExtendedBuildMessageEventArgs(string type, string? message, string? helpKeyword, string? senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp, params object[]? messageArgs);

Parameters

type
String

Type of ExtendedType.

message
String

text message

helpKeyword
String

help keyword

senderName
String

name of event sender

importance
MessageImportance

importance of the message

eventTimestamp
DateTime

Timestamp when event was created

messageArgs
Object[]

message arguments

Applies to

MSBuild 17 dan MSBuild (.NET Core) 17
Produk Versi
MSBuild 17
MSBuild (.NET Core) 17

ExtendedBuildMessageEventArgs(String, String, String, String, Int32, Int32, Int32, Int32, String, String, String, MessageImportance)

Source:
ExtendedBuildMessageEventArgs.cs

This constructor allows all event data to be initialized

C#
public ExtendedBuildMessageEventArgs(string type, string? subcategory, string? code, string? file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, string? message, string? helpKeyword, string? senderName, Microsoft.Build.Framework.MessageImportance importance);

Parameters

type
String

Type of ExtendedType.

subcategory
String

event sub-category

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

importance
MessageImportance

importance of the message

Applies to

MSBuild 17 dan MSBuild (.NET Core) 17
Produk Versi
MSBuild 17
MSBuild (.NET Core) 17

ExtendedBuildMessageEventArgs(String, String, String, String, Int32, Int32, Int32, Int32, String, String, String, MessageImportance, DateTime)

Source:
ExtendedBuildMessageEventArgs.cs

This constructor which allows a timestamp to be set

C#
public ExtendedBuildMessageEventArgs(string type, string? subcategory, string? code, string? file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, string? message, string? helpKeyword, string? senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp);

Parameters

type
String

Type of ExtendedType.

subcategory
String

event sub-category

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

importance
MessageImportance

importance of the message

eventTimestamp
DateTime

Timestamp when event was created

Applies to

MSBuild 17 dan MSBuild (.NET Core) 17
Produk Versi
MSBuild 17
MSBuild (.NET Core) 17

ExtendedBuildMessageEventArgs(String, String, String, String, Int32, Int32, Int32, Int32, String, String, String, MessageImportance, DateTime, Object[])

Source:
ExtendedBuildMessageEventArgs.cs

This constructor which allows a timestamp to be set

C#
public ExtendedBuildMessageEventArgs(string type, string? subcategory, string? code, string? file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, string? message, string? helpKeyword, string? senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp, params object[]? messageArgs);

Parameters

type
String

Type of ExtendedType.

subcategory
String

event sub-category

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

importance
MessageImportance

importance of the message

eventTimestamp
DateTime

Timestamp when event was created

messageArgs
Object[]

message arguments

Applies to

MSBuild 17 dan MSBuild (.NET Core) 17
Produk Versi
MSBuild 17
MSBuild (.NET Core) 17