共用方式為


BuildMessageEventArgs Constructors

Definition

Initializes a new instance of the BuildMessageEventArgs class.

Overloads

BuildMessageEventArgs()

Default constructor

BuildMessageEventArgs(String, String, String, MessageImportance)

This constructor allows all event data to be initialized

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

This constructor allows a timestamp to be set

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

This constructor allows a timestamp to be set

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

This constructor allows all event data to be initialized

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

This constructor allows timestamp to be set

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

This constructor allows timestamp to be set

BuildMessageEventArgs()

Source:
BuildMessageEventArgs.cs

Default constructor

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

Applies to

BuildMessageEventArgs(String, String, String, MessageImportance)

Source:
BuildMessageEventArgs.cs

This constructor allows all event data to be initialized

public:
 BuildMessageEventArgs(System::String ^ message, System::String ^ helpKeyword, System::String ^ senderName, Microsoft::Build::Framework::MessageImportance importance);
public BuildMessageEventArgs (string message, string helpKeyword, string senderName, Microsoft.Build.Framework.MessageImportance importance);
new Microsoft.Build.Framework.BuildMessageEventArgs : string * string * string * Microsoft.Build.Framework.MessageImportance -> Microsoft.Build.Framework.BuildMessageEventArgs
Public Sub New (message As String, helpKeyword As String, senderName As String, importance As MessageImportance)

Parameters

message
String

text message

helpKeyword
String

help keyword

senderName
String

name of event sender

importance
MessageImportance

importance of the message

Applies to

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

Source:
BuildMessageEventArgs.cs

This constructor allows a timestamp to be set

public:
 BuildMessageEventArgs(System::String ^ message, System::String ^ helpKeyword, System::String ^ senderName, Microsoft::Build::Framework::MessageImportance importance, DateTime eventTimestamp);
public BuildMessageEventArgs (string message, string helpKeyword, string senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp);
[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);
new Microsoft.Build.Framework.BuildMessageEventArgs : string * string * string * Microsoft.Build.Framework.MessageImportance * DateTime -> Microsoft.Build.Framework.BuildMessageEventArgs
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.Framework.BuildMessageEventArgs : string * string * string * Microsoft.Build.Framework.MessageImportance * DateTime -> Microsoft.Build.Framework.BuildMessageEventArgs
Public Sub New (message As String, helpKeyword As String, senderName As String, importance As MessageImportance, eventTimestamp As DateTime)

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

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

Source:
BuildMessageEventArgs.cs

This constructor allows a timestamp to be set

public:
 BuildMessageEventArgs(System::String ^ message, System::String ^ helpKeyword, System::String ^ senderName, Microsoft::Build::Framework::MessageImportance importance, DateTime eventTimestamp, ... cli::array <System::Object ^> ^ messageArgs);
public BuildMessageEventArgs (string message, string helpKeyword, string senderName, Microsoft.Build.Framework.MessageImportance importance, DateTime eventTimestamp, params object[] messageArgs);
[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);
new Microsoft.Build.Framework.BuildMessageEventArgs : string * string * string * Microsoft.Build.Framework.MessageImportance * DateTime * obj[] -> Microsoft.Build.Framework.BuildMessageEventArgs
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.Framework.BuildMessageEventArgs : string * string * string * Microsoft.Build.Framework.MessageImportance * DateTime * obj[] -> Microsoft.Build.Framework.BuildMessageEventArgs
Public Sub New (message As String, helpKeyword As String, senderName As String, importance As MessageImportance, eventTimestamp As DateTime, ParamArray messageArgs As Object())

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

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

Source:
BuildMessageEventArgs.cs

This constructor allows all event data to be initialized

public:
 BuildMessageEventArgs(System::String ^ subcategory, System::String ^ code, System::String ^ file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, System::String ^ message, System::String ^ helpKeyword, System::String ^ senderName, Microsoft::Build::Framework::MessageImportance importance);
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);
new Microsoft.Build.Framework.BuildMessageEventArgs : string * string * string * int * int * int * int * string * string * string * Microsoft.Build.Framework.MessageImportance -> Microsoft.Build.Framework.BuildMessageEventArgs
Public Sub New (subcategory As String, code As String, file As String, lineNumber As Integer, columnNumber As Integer, endLineNumber As Integer, endColumnNumber As Integer, message As String, helpKeyword As String, senderName As String, importance As MessageImportance)

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

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

Source:
BuildMessageEventArgs.cs

This constructor allows timestamp to be set

public:
 BuildMessageEventArgs(System::String ^ subcategory, System::String ^ code, System::String ^ file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, System::String ^ message, System::String ^ helpKeyword, System::String ^ senderName, Microsoft::Build::Framework::MessageImportance importance, DateTime eventTimestamp);
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);
new Microsoft.Build.Framework.BuildMessageEventArgs : string * string * string * int * int * int * int * string * string * string * Microsoft.Build.Framework.MessageImportance * DateTime -> Microsoft.Build.Framework.BuildMessageEventArgs
Public Sub New (subcategory As String, code As String, file As String, lineNumber As Integer, columnNumber As Integer, endLineNumber As Integer, endColumnNumber As Integer, message As String, helpKeyword As String, senderName As String, importance As MessageImportance, eventTimestamp As DateTime)

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

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

Source:
BuildMessageEventArgs.cs

This constructor allows timestamp to be set

public:
 BuildMessageEventArgs(System::String ^ subcategory, System::String ^ code, System::String ^ file, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, System::String ^ message, System::String ^ helpKeyword, System::String ^ senderName, Microsoft::Build::Framework::MessageImportance importance, DateTime eventTimestamp, ... cli::array <System::Object ^> ^ messageArgs);
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);
new Microsoft.Build.Framework.BuildMessageEventArgs : string * string * string * int * int * int * int * string * string * string * Microsoft.Build.Framework.MessageImportance * DateTime * obj[] -> Microsoft.Build.Framework.BuildMessageEventArgs
Public Sub New (subcategory As String, code As String, file As String, lineNumber As Integer, columnNumber As Integer, endLineNumber As Integer, endColumnNumber As Integer, message As String, helpKeyword As String, senderName As String, importance As MessageImportance, eventTimestamp As DateTime, ParamArray messageArgs As Object())

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