Finds the shared parameter element that corresponds to the given Guid.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2016
Syntax
C# |
---|
public static SharedParameterElement Lookup( Document document, Guid guidValue ) |
Visual Basic |
---|
Public Shared Function Lookup ( _ document As Document, _ guidValue As Guid _ ) As SharedParameterElement |
Visual C++ |
---|
public: static SharedParameterElement^ Lookup( Document^ document, Guid guidValue ) |
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
The document.
- guidValue
- Type: System..::..Guid
Shared parameter Guid.
Return Value
The retrieved shared parameter instance, or nullNothingnullptra null reference (Nothing in Visual Basic) if the matching element is not found.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |