Skip to content

RoutedViewHost.Dispose(bool) method

Defined in

Type: RoutedViewHost Namespace: ReactiveUI Assembly: ReactiveUI.dll

Applies to

net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net481

protected override void Dispose(bool disposing)

View source

Inherited documentation

These docs were inherited from ReactiveNavigationController. The member doesn't override them on this type.

Summary: Releases the resources used by the NSObject object.

Parameters

NameTypeDescription
disposingboolIf set to true, the method is invoked directly and will dispose managed and unmanaged resources; If set to false the method is being called by the garbage collector finalizer and should only release unmanaged resources.

Remarks

This Dispose method releases the resources used by the NSObject class.

This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposing disposing is set to true and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to false.

Calling the Dispose method when the application is finished using the NSObject ensures that all external resources used by this managed object are released as soon as possible. Once developers have invoked the Dispose method, the object is no longer useful and developers should no longer make any calls to it.

For more information on how to override this method and on the Dispose/IDisposable pattern, read the ``Implementing a Dispose Method'' document at https://msdn.microsoft.com/en-us/library/fs2xkftw.aspx