ParameterValueProvider
Description:
Gets the value of a parameter from any element passed to getStringValue, getDoubleValue, getIntegerValue, or getElementIdValue.
Gets the value of a parameter from any element passed to getStringValue, getDoubleValue, getIntegerValue, or getElementIdValue.
Remarks:
For any parameter, only one of isStringValueSupported, isDoubleValueSupported, isIntegerValueSupported, isElementIdValueSupported will return true. No attempt to convert between types is made. For example, calling getStringValue, passing the identifier of a numeric-typed parameter will give an empty string. No exception will be thrown, and ParameterValueProvider will not attempt to convert the numeric value to a string.
For any parameter, only one of isStringValueSupported, isDoubleValueSupported, isIntegerValueSupported, isElementIdValueSupported will return true. No attempt to convert between types is made. For example, calling getStringValue, passing the identifier of a numeric-typed parameter will give an empty string. No exception will be thrown, and ParameterValueProvider will not attempt to convert the numeric value to a string.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.FilterableValueProvider
Autodesk.Revit.DB.ParameterValueProvider
System.Object
Autodesk.Revit.DB.FilterableValueProvider
Autodesk.Revit.DB.ParameterValueProvider
public class ParameterValueProvider : FilterableValueProvider
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| ParameterValueProvider(ElementId) | None | Constructs an instance of ParameterValueProvider. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Dispose() | None | Releases all resources used by the | FilterableValueProvider |
| GetAssociatedGlobalParameterValue(Element) | ElementId | Gets a global parameter value associated with a parameter from the given element. | FilterableValueProvider |
| GetDoubleValue(Element) | double | Gets a double-precision numeric value from the given element. | FilterableValueProvider |
| GetElementIdValue(Element) | ElementId | Gets an ElementId value from the given element. | FilterableValueProvider |
| GetIntegerValue(Element) | int | Gets an integer value from the given element. | FilterableValueProvider |
| GetStringValue(Element) | string | Gets a string value from the given element. | FilterableValueProvider |
| IsDoubleValueSupported(Element) | bool | Determines whether the provide can provide a double-precision numeric value for the given element. | FilterableValueProvider |
| IsElementIdValueSupported(Element) | bool | Determines whether the provide can provide an ElementId value for the given element. | FilterableValueProvider |
| IsIntegerValueSupported(Element) | bool | Determines whether the provide can provide an integer value for the given element. | FilterableValueProvider |
| IsStringValueSupported(Element) | bool | Determines whether the provide can provide a string value for the given element. | FilterableValueProvider |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Parameter | ElementId | The parameter used to provide a string, integer, double-precision, or ElementId value on request for a given element. | |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. | FilterableValueProvider |