AzureIoTHubConnectedService.AccountPicker.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            if (this.picker != null)
            {
                this.picker.PropertyChanged -= this.Picker_PropertyChanged;
                this.picker.Dispose();
            }

            if (this.viewModel != null)
            {
                this.viewModel.AuthenticationChanged -= this.ViewModel_AuthenticationChanged;
            }
        }