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: 26.1.0.0 (26.1.0.34)
Syntax
C#
public ElementId GetTemporaryViewPropertiesId()