Compartir a través de


BuildEventContext Class

Definition

Will provide location information for an event, this is especially needed in a multi processor environment

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

Remarks

BuildEventContext is especially useful in multiprocessor environments.

Constructors

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

Constructs a BuildEventContext

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

Constructs a BuildEventContext with a specific submission id

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

Constructs a BuildEventContext with a specified project instance id.

BuildEventContext(Int32, Int32, Int32, Int32)

This is the original constructor. No one should ever use this except internally for backward compatibility.

Fields

InvalidEvaluationId

Indicates an invalid evaluation identifier.

InvalidNodeId

Indicates an invalid node identifier.

InvalidProjectContextId

Indicates an invalid project context identifier.

InvalidProjectInstanceId

Indicates an invalid project instance identifier.

InvalidSubmissionId

Indicates an invalid submission identifier.

InvalidTargetId

Indicates an invalid target identifier.

InvalidTaskId

Indicates an invalid task identifier.

Properties

BuildRequestId

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

EvaluationId

Retrieves the Evaluation id.

Invalid

Returns a default invalid BuildEventContext

NodeId

NodeId where event took place

ProjectContextId

Retrieves the Project Context id.

ProjectInstanceId

Retrieves the project instance id.

SubmissionId

Retrieves the Submission id.

TargetId

Id of the target the event was in when the event was fired

TaskId

Retrieves the task id.

Methods

Equals(Object)

Compare a BuildEventContext with this BuildEventContext. A build event context is compared in the following way.

  1. If the object references are the same the contexts are equivalent
  2. If the object type is the same and the Id values in the context are the same, the contexts are equivalent
GetHashCode()

Retrieves a hash code for this BuildEventContext.

ToString()

Operators

Equality(BuildEventContext, BuildEventContext)

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

Inequality(BuildEventContext, BuildEventContext)

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

Applies to