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