IGeneratedTask.SetPropertyValue(TaskPropertyInfo, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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