Sets the specified part property.
Namespace: Autodesk.Civil.DatabaseServices.StylesAssembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.4.2516.0
Syntax
| C# |
|---|
public void SetProperty( PressurePartContextType prop, Object newVal ) |
| Visual Basic |
|---|
Public Sub SetProperty ( _ prop As PressurePartContextType, _ newVal As Object _ ) |
| Visual C++ |
|---|
public: void SetProperty( PressurePartContextType prop, Object^ newVal ) |
Parameters
- prop
- Type: Autodesk.Civil.DatabaseServices..::..PressurePartContextType
The context that is used to specify the property.
- newVal
- Type: System..::..Object
The new value to be set.
Remarks
The new value can be: int, double, string and bool. The value type MUST keep consistent with context.
Exceptions
| Exception | Condition |
|---|---|
| [!:System.ArgumentException] | Thrown when the new value cannot be casted into the value type required by the context. |