Compartilhar via


IGeneratedTask.SetPropertyValue(TaskPropertyInfo, Object) Method

Definition

Sets a value on a property of this task instance.

public:
 void SetPropertyValue(Microsoft::Build::Framework::TaskPropertyInfo ^ property, System::Object ^ value);
public void SetPropertyValue (Microsoft.Build.Framework.TaskPropertyInfo property, object value);
abstract member SetPropertyValue : Microsoft.Build.Framework.TaskPropertyInfo * obj -> unit
Public Sub SetPropertyValue (property As TaskPropertyInfo, value As Object)

Parameters

property
TaskPropertyInfo

The property to set.

value
Object

The value to set. The caller is responsible to type-coerce this value to match the property's PropertyType.

Remarks

All exceptions from this method will be caught in the taskExecution host and logged as a fatal task error

Applies to