อ่านในภาษาอังกฤษ

แชร์ผ่าน


BuildMessageEventArgs Constructors

Definition

Initializes a new instance of the BuildMessageEventArgs class.

Overloads

BuildMessageEventArgs()

Source:
BuildMessageEventArgs.cs

Default constructor

C#
protected BuildMessageEventArgs();
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
protected BuildMessageEventArgs();
Attributes

Applies to

MSBuild 17 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

BuildMessageEventArgs(String, String, String, Int32, Int32, Int32, Int32, String, String, String, MessageImportance, DateTime)

Source:
BuildMessageEventArgs.cs

This constructor allows timestamp to be set

C#
public BuildMessageEventArgs(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

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

importance
MessageImportance

importance of the message

eventTimestamp
DateTime

custom timestamp for the event

Applies to

MSBuild 17 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

BuildMessageEventArgs(String, String, String, Int32, Int32, Int32, Int32, String, String, String, MessageImportance)

Source:
BuildMessageEventArgs.cs

This constructor allows all event data to be initialized

C#
public BuildMessageEventArgs(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

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

importance
MessageImportance

importance of the message

Applies to

MSBuild 17 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

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

Source:
BuildMessageEventArgs.cs

This constructor allows a timestamp to be set

C#
public BuildMessageEventArgs(string message, string helpKeyword, string senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp, params object[] messageArgs);
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public BuildMessageEventArgs(string message, string helpKeyword, string senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp, params object[] messageArgs);

Parameters

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

Attributes

Applies to

MSBuild 17 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

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

Source:
BuildMessageEventArgs.cs

This constructor allows timestamp to be set

C#
public BuildMessageEventArgs(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

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

importance
MessageImportance

importance of the message

eventTimestamp
DateTime

custom timestamp for the event

messageArgs
Object[]

message arguments

Applies to

MSBuild 17 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

BuildMessageEventArgs(String, String, String, MessageImportance, DateTime)

Source:
BuildMessageEventArgs.cs

This constructor allows a timestamp to be set

C#
public BuildMessageEventArgs(string message, string helpKeyword, string senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp);
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public BuildMessageEventArgs(string message, string helpKeyword, string senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp);

Parameters

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

Attributes

Applies to

MSBuild 17 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

BuildMessageEventArgs(String, String, Int32, Int32, MessageImportance)

Source:
BuildMessageEventArgs.cs
C#
protected BuildMessageEventArgs(string message, string file, int lineNumber, int columnNumber, Microsoft.Build.Framework.MessageImportance importance);

Parameters

message
String
file
String
lineNumber
Int32
columnNumber
Int32
importance
MessageImportance

Applies to

MSBuild 17 และ MSBuild (.NET Core) 17
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 17
MSBuild (.NET Core) 17

BuildMessageEventArgs(String, String, String, MessageImportance)

Source:
BuildMessageEventArgs.cs

This constructor allows all event data to be initialized

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

Parameters

message
String

text message

helpKeyword
String

help keyword

senderName
String

name of event sender

importance
MessageImportance

importance of the message

Applies to

MSBuild 17 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

BuildMessageEventArgs(String, String, String, Int32, Int32)

Source:
BuildMessageEventArgs.cs

This constructor allows event data without ends to be initialized.

C#
protected BuildMessageEventArgs(string code, string message, string file, int lineNumber, int columnNumber);

Parameters

code
String

event code

message
String

text message

file
String

file associated with the event

lineNumber
Int32

line number (0 if not applicable)

columnNumber
Int32

column number (0 if not applicable)

Applies to

MSBuild 17 และ MSBuild (.NET Core) 17
ผลิตภัณฑ์ เวอร์ชัน
MSBuild 17
MSBuild (.NET Core) 17