BuildEventContext Class

Definition

Provides contextual location information for build events.

public ref class BuildEventContext
[System.Serializable]
public class BuildEventContext
type BuildEventContext = class
Public Class BuildEventContext
Inheritance
BuildEventContext
Attributes

Remarks

BuildEventContext is especially useful in multiprocessor environments.

Constructors

BuildEventContext(Int32, Int32, Int32, Int32)

Initializes a new instance of the BuildEventContext class.

BuildEventContext(Int32, Int32, Int32, Int32, Int32)

Constructs a BuildEventContext with a specified project instance id.

BuildEventContext(Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a BuildEventContext with a specific submission id.

BuildEventContext(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Fields

InvalidEvaluationId
InvalidNodeId

The node ID of the target the event was in when the event was triggered.

InvalidProjectContextId

The project ID of the target the event was in when the event was triggered.

InvalidProjectInstanceId

The project instance ID of the target the event was in when the event was triggered.

InvalidSubmissionId

The submission ID of the target the event was in when the event was triggered.

InvalidTargetId

The name of the target the event was in when the event was triggered.

InvalidTaskId

The task ID of the target the event was in when the event was triggered.

Properties

BuildRequestId

Retrieves the BuildRequest id. Note that this is not the same as the global request id on a BuildRequest or BuildResult.

EvaluationId
Invalid

Gets whether the context where the event occurred is valid.

NodeId

Gets the node ID where the event occurred.

ProjectContextId

Gets the ID of the project where the event occurred.

ProjectInstanceId

Retrieves the project instance id.

SubmissionId

Retrieves the Submission id.

TargetId

Gets the ID of the target where the event occurred.

TaskId

Gets the ID of the task where the event occurred.

Methods

Equals(Object)

Gets whether the references are the same.

GetHashCode()

Gets a code comprised of the ProjectContextId and the NodeId.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Operators

Equality(BuildEventContext, BuildEventContext)

Overrides == so the equals comparison using this operator will be the same as .Equals.

Inequality(BuildEventContext, BuildEventContext)

Overrides != so the equals comparison using this operator will be the same as ! Equals.

Applies to