BuildEventContext BuildEventContext BuildEventContext Class

Definition

Provides contextual location information for build events.

public ref class BuildEventContext
public class BuildEventContext
Public Class BuildEventContext
Inheritance
BuildEventContextBuildEventContextBuildEventContext

Remarks

BuildEventContext is especially useful in multiprocessor environments.

Constructors

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

Initializes a new instance of the BuildEventContext class.

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

Constructs a BuildEventContext with a specified project instance id.

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

Constructs a BuildEventContext with a specific submission id

Fields

InvalidNodeId InvalidNodeId InvalidNodeId

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

InvalidProjectContextId InvalidProjectContextId InvalidProjectContextId

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

InvalidProjectInstanceId InvalidProjectInstanceId InvalidProjectInstanceId

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

InvalidSubmissionId InvalidSubmissionId InvalidSubmissionId

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

InvalidTargetId InvalidTargetId InvalidTargetId

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

InvalidTaskId InvalidTaskId InvalidTaskId

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

Properties

BuildRequestId BuildRequestId BuildRequestId

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

Invalid Invalid Invalid

Gets whether the context where the event occurred is valid.

NodeId NodeId NodeId

Gets the node ID where the event occurred.

ProjectContextId ProjectContextId ProjectContextId

Gets the ID of the project where the event occurred.

ProjectInstanceId ProjectInstanceId ProjectInstanceId

Retrieves the project instance id.

SubmissionId SubmissionId SubmissionId

Retrieves the Submission id.

TargetId TargetId TargetId

Gets the ID of the target where the event occurred.

TaskId TaskId TaskId

Gets the ID of the task where the event occurred.

Methods

Equals(Object) Equals(Object) Equals(Object)

Gets whether the references are the same.

GetHashCode() GetHashCode() GetHashCode()

Gets a code comprised of the ProjectContextId and the NodeId.

GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Operators

Equality(BuildEventContext, BuildEventContext) Equality(BuildEventContext, BuildEventContext) Equality(BuildEventContext, BuildEventContext)

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

Inequality(BuildEventContext, BuildEventContext) Inequality(BuildEventContext, BuildEventContext) Inequality(BuildEventContext, BuildEventContext)

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

Applies to