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