3 writes to _clientSite
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (3)
1641DisposeHelper.NullAndDispose(ref _clientSite); 1651_clientSite = new(value, takeOwnership: true); 2142DisposeHelper.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(); 595if (_clientSite is null) 600using var dispatch = _clientSite.TryGetInterface<IDispatch>(out HRESULT hr); 617internal ComScope<IOleClientSite> GetClientSite() => _clientSite is null ? default : _clientSite.GetInterface(); 793if (_clientSite is null) 798using var inPlaceSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 871using var clientSite = _clientSite.GetInterface(); 958if (_clientSite is not null) 960using var inPlaceSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 1338if (_activeXState[s_inPlaceActive] && _clientSite is not null) 1340using var controlSite = _clientSite.TryGetInterface<IOleControlSite>(out HRESULT hr); 1652_control.Site = new AxSourcingSite(_control, _clientSite, "ControlAxSourcingSite"); 1672if (_clientSite is null && !_accelTable.IsNull) 1704if (_activeXState[s_inPlaceActive] && _clientSite is not null) 1706using var clientSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 1714Debug.Assert(_clientSite is not null, "How can we setextent before we are sited??"); 1738if (!_activeXState[s_inPlaceActive] && _clientSite is not null) 1740using var clientSite = _clientSite.GetInterface(); 1906if (_clientSite is null) 1911using var controlSite = _clientSite.TryGetInterface<IOleControlSite>(out HRESULT hr); 1963if (_clientSite is not null) 1965using var inPlaceSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 1992if (_activeXState[s_adjustingRect] || !_activeXState[s_inPlaceVisible] || _clientSite is null) 1997using var inPlaceSite = _clientSite.TryGetInterface<IOleInPlaceSite>(out HRESULT hr); 2062if (_clientSite is null) 2067using var controlSite = _clientSite.TryGetInterface<IOleControlSite>(out HRESULT hr);