8 implementations of Site
System (2)
compmod\system\componentmodel\Component.cs (1)
106
public virtual ISite
Site
{
compmod\system\componentmodel\MarshalByValueComponent.cs (1)
73
public virtual ISite
Site
{
System.Web (2)
HttpApplication.cs (1)
1453
public ISite
Site
{
UI\Control.cs (1)
1230
public ISite
Site
{
System.Web.Mobile (1)
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
814
public ISite
Site
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Control.cs (1)
3816
public override ISite
Site
{
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
930
public ISite
Site
System.Workflow.ComponentModel (1)
AuthoringOM\DependencyObject.cs (1)
680
public ISite
Site
6 writes to Site
System (3)
compmod\system\componentmodel\Container.cs (3)
89
component.
Site
= newSite;
139
site.Component.
Site
= null;
216
component.
Site
= null;
System.Web.Mobile (1)
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
710
((IComponent)clone).
Site
= ((IComponent)target).Site;
System.Workflow.ComponentModel (2)
Shared\XomlSerializationHelpers.cs (2)
265
((IComponent)nestedActivity).
Site
= dummySite;
266
((IComponent)rootActivity).
Site
= dummySite;
139 references to Site
System (29)
compmod\system\componentmodel\ComponentCollection.cs (3)
61
if (comp != null && comp.
Site
!= null && comp.
Site
.Name != null && string.Equals(comp.
Site
.Name, name, StringComparison.OrdinalIgnoreCase)) {
compmod\system\componentmodel\ComponentResourceManager.cs (1)
113
ISite site = ((IComponent)value).
Site
;
compmod\system\componentmodel\Container.cs (2)
61
ISite site = component.
Site
;
212
ISite site = component.
Site
;
compmod\system\componentmodel\MemberDescriptor.cs (1)
486
return((IComponent)component).
Site
;
compmod\system\componentmodel\NestedContainer.cs (5)
56
if (_owner != null && _owner.
Site
!= null) {
57
INestedSite nestedOwnerSite = _owner.
Site
as INestedSite;
62
ownerName = _owner.
Site
.Name;
148
if (owner != null && owner.
Site
!= null) {
149
return owner.
Site
.DesignMode;
compmod\system\componentmodel\ReferenceConverter.cs (1)
117
ISite site = comp.
Site
;
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (1)
945
ISite site = comp.
Site
;
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (8)
259
if (comp != null && comp.
Site
!= null)
261
IDictionaryService ds = comp.
Site
.GetService(typeof(IDictionaryService)) as IDictionaryService;
575
if (component != null && component.
Site
!= null)
577
IExtenderListService extenderList = component.
Site
.GetService(typeof(IExtenderListService)) as IExtenderListService;
586
IContainer cont = component.
Site
.Container;
765
INestedSite ns = comp.
Site
as INestedSite;
1182
if (comp == null || comp.
Site
== null)
1596
ISite site = comp.
Site
;
compmod\system\componentmodel\TypeDescriptor.cs (5)
592
ISite site = component.
Site
;
1336
ISite site = component.
Site
;
1901
if (component != null && component.
Site
!= null)
1903
name = component.
Site
.Name;
2499
ISite site = component.
Site
;
sys\system\configuration\ApplicationSettingsBase.cs (2)
78
if (owner.
Site
!= null) {
79
ISettingsProviderService provSvc = owner.
Site
.GetService(typeof(ISettingsProviderService)) as ISettingsProviderService;
System.Web (3)
UI\ClientScriptManager.cs (1)
547
ISite site = ((IComponent)owner).
Site
;
UI\ControlIdConverter.cs (2)
39
if (component != null && component.
Site
!= null) {
40
container = component.
Site
.Container;
System.Web.DataVisualization (1)
Common\Converters\DataManagerConverters.cs (1)
163
values.Add(comonent.
Site
.Name);
System.Web.Mobile (9)
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (2)
49
ISite compSite = component.
Site
;
91
ISite compSite = component.
Site
;
UI\MobileControls\Design\BaseTemplatedMobileComponentEditor.cs (1)
64
ISite compSite = comp.
Site
;
UI\MobileControls\Design\Converters\DataFieldConverter.cs (1)
151
ISite componentSite = component.
Site
;
UI\MobileControls\Design\Converters\DataMemberConverter.cs (1)
102
ISite componentSite = component.
Site
;
UI\MobileControls\Design\MobileComponentEditorPage.cs (1)
56
_site = selectedComponent.
Site
;
UI\MobileControls\Design\MobileControlPersister.cs (1)
824
site = baseComponent.
Site
;
UI\MobileControls\Design\PropertyOverridesDialog.cs (2)
352
ISite componentSite = ((IComponent)(_designer.UnderlyingControl)).
Site
;
710
((IComponent)clone).Site = ((IComponent)target).
Site
;
System.Windows.Forms (36)
winforms\Managed\System\WinForms\AxHost.cs (1)
5573
if (comp is Control && comp != parent && comp.
Site
!= null) {
winforms\Managed\System\WinForms\Binding.cs (1)
588
ISite site = comp.
Site
;
winforms\Managed\System\WinForms\DataGrid.cs (3)
8951
if (component.
Site
== null) {
8956
if (component.
Site
!= null && component.
Site
.Container == container) {
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (5)
99
if (component.
Site
!= null) {
100
changeService = (IComponentChangeService)component.
Site
.GetService(typeof(IComponentChangeService));
213
if (component.
Site
!= null) {
214
IUIService uiService = (IUIService)component.
Site
.GetService(typeof(IUIService));
258
ISite site = component.
Site
;
winforms\Managed\System\WinForms\Design\EventsTab.cs (1)
112
ISite site = ((IComponent)obj).
Site
;
winforms\Managed\System\WinForms\PropertyGrid.cs (6)
1314
showEvents = showEvents && (tempObj is IComponent && ((IComponent)tempObj).
Site
!= null);
1862
if (component != null && component is IComponent && ((IComponent) component).
Site
!= null)
1863
host = (IDesignerHost) ((IComponent) component).
Site
.GetService(typeof(IDesignerHost));
2143
ISite site = component.
Site
;
3426
if (currentSelection.
Site
== null) //The component is not logically sited...so clear the PropertyGrid Selection..
3573
ISite site = ((IComponent)baseObject).
Site
;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
299
ISite site = component.
Site
;
winforms\Managed\System\WinForms\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (4)
44
if (comp.
Site
!= null) {
46
c = comp.
Site
.Container;
49
else if (c == comp.
Site
.Container) {
251
bool needChangeNotify = !(objects[0] is IComponent) || ((IComponent)objects[0]).
Site
== null;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
660
bool needChangeNotify = !(obj is IComponent) || ((IComponent)obj).
Site
== null;
928
string compName = component.
Site
!= null ? component.
Site
.Name : component.GetType().Name;
933
ISite site = component.
Site
;
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
203
ISite site = ((IComponent)objValue).
Site
;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (6)
1133
return owner.
Site
.Container;
1143
return owner.
Site
.DesignMode;
1155
return owner.
Site
.Name;
1158
owner.
Site
.Name = value;
1177
if (owner.
Site
!= null) {
1178
return owner.
Site
.GetService(service);
winforms\Managed\System\WinForms\WebBrowserContainer.cs (1)
221
if (comp is Control && comp != parent && comp.
Site
!= null) {
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
372
if(component.
Site
!= null) {
373
result = component.
Site
.Name;
System.Windows.Forms.DataVisualization (1)
Common\Converters\DataManagerConverters.cs (1)
163
values.Add(comonent.
Site
.Name);
System.Workflow.Activities (22)
Common\BasePropertyDescriptor.cs (4)
40
if ((component is IComponent) && ((IComponent)component).
Site
!= null)
41
site = ((IComponent)component).
Site
;
44
site = ((IComponent)(component as object[])[0]).
Site
;
53
site = baseComponent.
Site
;
Common\CompModHelpers.cs (4)
304
if (component != null && component.
Site
!= null)
306
IDesignerHost designerHost = component.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
353
if (component != null && component.
Site
!= null)
355
IDesignerHost designerHost = component.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
EventSinkActivity.cs (2)
446
if (((IComponent)this).
Site
== null)
449
ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).
Site
.GetService(typeof(ITypeProvider));
InvokeMethodActivity.cs (2)
251
if (((IComponent)this).
Site
== null)
254
ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).
Site
.GetService(typeof(ITypeProvider));
InvokeSchedule.cs (1)
132
IDesignerHost designerHost = ((IComponent)this).
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
InvokeWebService.cs (2)
382
if (((IComponent)this).
Site
== null)
385
ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).
Site
.GetService(typeof(ITypeProvider));
Rules\Design\Dialogs\BasicBrowserDialog.cs (2)
290
ISite site = ((IComponent)this.activity).
Site
;
312
ISite site = ((IComponent)this.activity).
Site
;
Rules\Design\LogicalExpressionTypeConverter.cs (1)
173
site = component.
Site
;
WebServiceReceive.cs (2)
443
if (((IComponent)this).
Site
== null)
446
ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).
Site
.GetService(typeof(ITypeProvider));
WebServiceResponse.cs (2)
249
if (((IComponent)this).
Site
== null)
252
ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).
Site
.GetService(typeof(ITypeProvider));
System.Workflow.ComponentModel (32)
AuthoringOM\Activity.cs (5)
2371
if (((IComponent)this).
Site
!= null)
2373
IComponentChangeService changeService = ((IComponent)this).
Site
.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
2415
activity.Name = DesignerHelpers.GenerateUniqueIdentifier(((IComponent)this).
Site
, Helpers.GetBaseIdentifier(activity), (string[])identifiers.ToArray(typeof(string)));
2427
if (((IComponent)this).
Site
!= null)
2429
IComponentChangeService changeService = ((IComponent)this).
Site
.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
AuthoringOM\Design\CommandSet.cs (3)
637
if (selectedComponent != null && selectedComponent.
Site
!= null)
639
IDesignerHost host = selectedComponent.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
717
IMemberCreationService memberCreationService = rootComponent.
Site
.GetService(typeof(IMemberCreationService)) as IMemberCreationService;
AuthoringOM\Design\ComponentSerializationService.cs (2)
249
bool needChangeEvent = (componentChangeService != null) && (!(obj is IComponent) || (((IComponent)obj).
Site
== null));
549
if ((component == null || component.
Site
== null) && serviceProvider != null)
AuthoringOM\Design\CompositeActivityDesigner.cs (2)
456
moveCase = ((IComponent)activity).
Site
!= null;
1478
DesignerHelpers.MakePropertiesReadOnly(e.Component.
Site
, designer.Activity);
AuthoringOM\Design\DesignerHelpers.cs (6)
1262
writer.Write(component.
Site
.Name);
1368
((IComponent)activity).
Site
.Name = name;
1379
((IComponent)childActivity).
Site
.Name = ((IComponent)declaringActivity).
Site
.Name + "." + childActivity.Name; //the parent should have already been updated by now
1575
IServiceProvider serviceProvider = component.
Site
as IServiceProvider;
1595
ISite site = ((IComponent)component).
Site
;
AuthoringOM\Design\FreeFormDesigner.cs (1)
243
if (Activity != null && ((IComponent)Activity).
Site
!= null && !(ParentDesigner is FreeformActivityDesigner))
AuthoringOM\Design\IdentifierCreationService.cs (1)
126
if (((IComponent)activity).
Site
!= null)
AuthoringOM\Design\ReferenceService.cs (3)
354
if (this.sitedComponent != null && this.sitedComponent.
Site
!= null && this.sitedComponent.
Site
.Name != null)
356
this.fullName = string.Format(CultureInfo.InvariantCulture, "{0}{1}", new object[] { this.sitedComponent.
Site
.Name, this.trailingName });
AuthoringOM\Design\TypeConverters.cs (1)
138
props = PropertyDescriptorFilter.FilterProperties(component.
Site
, value, TypeDescriptor.GetProperties(value, new Attribute[] { BrowsableAttribute.Yes }));
Shared\BasePropertyDescriptor.cs (4)
39
if ((component is IComponent) && ((IComponent)component).
Site
!= null)
40
site = ((IComponent)component).
Site
;
43
site = ((IComponent)(component as object[])[0]).
Site
;
52
site = baseComponent.
Site
;
Shared\CompModHelpers.cs (4)
302
if (component != null && component.
Site
!= null)
304
IDesignerHost designerHost = component.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
351
if (component != null && component.
Site
!= null)
353
IDesignerHost designerHost = component.
Site
.GetService(typeof(IDesignerHost)) as IDesignerHost;
System.WorkflowServices (6)
System\Workflow\Activities\ReceiveActivity.cs (4)
667
Type contractType = serviceOperationInfo.GetContractType(((IComponent)this).
Site
);
703
MethodInfo methodInfo = serviceOperationInfo.GetMethodInfo(((IComponent)this).
Site
);
779
if (((IComponent)this).
Site
== null)
787
MethodInfo methodInfo = serviceOperationInfo.GetMethodInfo(((IComponent)this).
Site
);
System\Workflow\Activities\SendActivity.cs (2)
458
if (((IComponent) this).
Site
== null)
466
MethodInfo methodInfo = serviceOperationInfo.GetMethodInfo(((IComponent) this).
Site
);