Parameter.Set(ElementId)
Method
Description:
Sets the parameter to a new element id.
Sets the parameter to a new element id.
Remarks:
You should only use this method if the StorageType property reports the type of the parameter as an ElementId.
You should only use this method if the StorageType property reports the type of the parameter as an ElementId.
Parameters
| Parameter | Type | Description |
|---|---|---|
| value | ElementId | The new element id to which the parameter is to be set. |
Return Value
| Type | Description |
|---|---|
| Boolean | The Set method will return True if the parameter was successfully set to the new value, otherwise false. |
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | The parameter is read-only. |