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