3 writes to _clientSite
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (3)
1633DisposeHelper.NullAndDispose(ref _clientSite); 1643_clientSite = new(value, takeOwnership: true); 2134DisposeHelper.NullAndDispose(ref _clientSite);
28 references to _clientSite
System.Windows.Forms (28)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (28)
321if (_clientSite is not null) 323using var clientSite = _clientSite.GetInterface(); 587if (_clientSite is null) 592using var dispatch = _clientSite.TryGetInterface<IDispatch>(out HRESULT hr); 609internal ComScope<IOleClientSite> GetClientSite() => _clientSite is null ? default : _clientSite.GetInterface(); 785if (_clientSite is null) 790using var inPlaceSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 863using var clientSite = _clientSite.GetInterface(); 950if (_clientSite is not null) 952using var inPlaceSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 1330if (_activeXState[s_inPlaceActive] && _clientSite is not null) 1332using var controlSite = _clientSite.TryGetInterface<IOleControlSite>(out HRESULT hr); 1644_control.Site = new AxSourcingSite(_control, _clientSite, "ControlAxSourcingSite"); 1664if (_clientSite is null && !_accelTable.IsNull) 1696if (_activeXState[s_inPlaceActive] && _clientSite is not null) 1698using var clientSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 1706Debug.Assert(_clientSite is not null, "How can we setextent before we are sited??"); 1730if (!_activeXState[s_inPlaceActive] && _clientSite is not null) 1732using var clientSite = _clientSite.GetInterface(); 1898if (_clientSite is null) 1903using var controlSite = _clientSite.TryGetInterface<IOleControlSite>(out HRESULT hr); 1955if (_clientSite is not null) 1957using var inPlaceSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 1984if (_activeXState[s_adjustingRect] || !_activeXState[s_inPlaceVisible] || _clientSite is null) 1989using var inPlaceSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 2054if (_clientSite is null) 2059using var controlSite = _clientSite.TryGetInterface<IOleControlSite>(out HRESULT hr);