Namespace:
Autodesk.Revit.DB
ParameterValueProvider
Class
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.
If an element doesn't have the requested parameter or the element's parameter doesn't have a valid value, ParameterValueProvider will attempt to get the parameter value from the element's type - see GetTypeId().
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.FilterableValueProvider
Autodesk.Revit.DB.ParameterValueProvider
System.Object
Autodesk.Revit.DB.FilterableValueProvider
Autodesk.Revit.DB.ParameterValueProvider
ParameterValueProvider Class Members:
| Name | Description | Inherited From |
|---|---|---|
| ParameterValueProvider | Constructs an instance of ParameterValueProvider. |
| Name | Description | Inherited From |
|---|---|---|
| IsValidObject | Specifies whether the .NET object represents a valid Revit entity. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| Parameter | The parameter used to provide a string, integer, double-precision, or ElementId value on request for a given element. |
| Name | Description | Inherited From |
|---|---|---|
| Dispose | (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetAssociatedGlobalParameterValue | Gets a global parameter value associated with a parameter from the given element. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| GetDoubleValue | Gets a double-precision numeric value from the given element. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| GetElementIdValue | Gets an ElementId value from the given element. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| GetHashCode | Serves as the default hash function. (Inherited from Object ) | Object |
| GetIntegerValue | Gets an integer value from the given element. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| GetStringValue | Gets a string value from the given element. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| GetType | Gets the Type of the current instance. (Inherited from Object ) | Object |
| IsDoubleValueSupported | Determines whether the provide can provide a double-precision numeric value for the given element. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| IsElementIdValueSupported | Determines whether the provide can provide an ElementId value for the given element. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| IsIntegerValueSupported | Determines whether the provide can provide an integer value for the given element. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| IsStringValueSupported | Determines whether the provide can provide a string value for the given element. (Inherited from FilterableValueProvider ) | FilterableValueProvider |
| ToString | Returns a string that represents the current object. (Inherited from Object ) | Object |