Revit 2024 API |
AssetProperties..::..FindByName Method |
AssetProperties Class See Also |
Gets the property with the given name.
Namespace: Autodesk.Revit.DB.Visual
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:
2018.1
Syntax
C# |
---|
public AssetProperty FindByName( string name ) |
Visual Basic |
---|
Public Function FindByName ( _ name As String _ ) As AssetProperty |
Visual C++ |
---|
public: AssetProperty^ FindByName( String^ name ) |
Parameters
- name
- Type: System..::..String
Name of the property.
Return Value
The property with the specified name.
Remarks
FindByName will not visit the properties of any connected asset on any of the properties.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |