When Temporary View Properties mode is in progress it provides view id that overrode settings for current view.
Outside Temporary View Properties mode InvalidElementId will be returned.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
C#
public ElementId GetTemporaryViewPropertiesId()