Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Design / ExtenderHelpers.cs / 1305376 / ExtenderHelpers.cs
#pragma warning disable 1634, 1691 namespace System.Workflow.ComponentModel.Design { using System; using System.IO; using System.Drawing; using System.CodeDom; using System.Diagnostics; using System.Collections; using System.Collections.Generic; using System.Windows.Forms; using System.ComponentModel; using System.Globalization; using System.Drawing.Design; using System.Drawing.Imaging; using System.Drawing.Drawing2D; using System.Windows.Forms.Design; using System.ComponentModel.Design; using System.Collections.Specialized; using System.ComponentModel.Design.Serialization; using System.Workflow.ComponentModel.Compiler; using System.Workflow.ComponentModel.Serialization; using System.Collections.ObjectModel; using System.Reflection; using System.Workflow.ComponentModel.Design; using System.Runtime.Serialization.Formatters.Binary; // #region Class ExtenderHelpers internal static class ExtenderHelpers { internal static void FilterDependencyProperties(IServiceProvider serviceProvider, Activity activity) { IExtenderListService extenderListService = serviceProvider.GetService(typeof(IExtenderListService)) as IExtenderListService; if (extenderListService != null) { DictionarydependencyProperyies = new Dictionary (); foreach (DependencyProperty property in activity.MetaDependencyProperties) dependencyProperyies.Add(property.Name, property); List disallowedProperties = new List (); foreach (IExtenderProvider extenderProvider in extenderListService.GetExtenderProviders()) { if (!extenderProvider.CanExtend(activity)) { ProvidePropertyAttribute[] propertyAttributes = extenderProvider.GetType().GetCustomAttributes(typeof(ProvidePropertyAttribute), true) as ProvidePropertyAttribute[]; foreach (ProvidePropertyAttribute propertyAttribute in propertyAttributes) disallowedProperties.Add(propertyAttribute.PropertyName); } } foreach (string propertyName in disallowedProperties) { if (dependencyProperyies.ContainsKey(propertyName)) activity.RemoveProperty(dependencyProperyies[propertyName]); } } } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartVerbCollection.cs
- DependencyProperty.cs
- JpegBitmapEncoder.cs
- AnchoredBlock.cs
- WindowsBrush.cs
- WindowsHyperlink.cs
- SiteMapNode.cs
- SymLanguageType.cs
- ToolStripPanelSelectionGlyph.cs
- EventEntry.cs
- SourceSwitch.cs
- CalendarDateRangeChangingEventArgs.cs
- SignatureResourcePool.cs
- DataGrid.cs
- ButtonField.cs
- KeyedCollection.cs
- GeometryGroup.cs
- NotImplementedException.cs
- SqlNamer.cs
- HtmlLink.cs
- MediaScriptCommandRoutedEventArgs.cs
- DocumentEventArgs.cs
- SystemColors.cs
- AlternateView.cs
- TypefaceMap.cs
- BitConverter.cs
- DiscoveryOperationContextExtension.cs
- DPAPIProtectedConfigurationProvider.cs
- DateTimeOffset.cs
- XslException.cs
- WSHttpTransportSecurityElement.cs
- EntityDataReader.cs
- SimplePropertyEntry.cs
- WebBrowserEvent.cs
- ConnectionPoolManager.cs
- PrintDialogDesigner.cs
- ToolStripStatusLabel.cs
- FormViewDeleteEventArgs.cs
- ArrayExtension.cs
- UnsafeNativeMethods.cs
- EntityDataSourceQueryBuilder.cs
- AutomationPropertyInfo.cs
- CellTreeNode.cs
- linebase.cs
- SimpleTextLine.cs
- SystemWebCachingSectionGroup.cs
- TTSEngineTypes.cs
- CustomError.cs
- DoubleCollectionConverter.cs
- dbenumerator.cs
- UserUseLicenseDictionaryLoader.cs
- TextEditorParagraphs.cs
- ClientFormsAuthenticationCredentials.cs
- ResourceContainer.cs
- SmiRequestExecutor.cs
- ResourceManager.cs
- DataGridTable.cs
- _SslStream.cs
- ChannelDispatcherBase.cs
- UserControl.cs
- ThreadPool.cs
- PreviewKeyDownEventArgs.cs
- BinHexDecoder.cs
- BaseAsyncResult.cs
- Binding.cs
- WebZone.cs
- RtfToken.cs
- ResourcesChangeInfo.cs
- DataBindingExpressionBuilder.cs
- PlainXmlWriter.cs
- DataTableClearEvent.cs
- Rotation3DKeyFrameCollection.cs
- TdsParameterSetter.cs
- VirtualDirectoryMapping.cs
- HtmlInputReset.cs
- ConfigXmlText.cs
- documentsequencetextpointer.cs
- ButtonField.cs
- Switch.cs
- TemplateAction.cs
- WebPartZoneCollection.cs
- ColorAnimationBase.cs
- Clock.cs
- InputLanguageProfileNotifySink.cs
- ReadOnlyTernaryTree.cs
- CurrentChangedEventManager.cs
- TextBoxView.cs
- SymbolPair.cs
- SystemColors.cs
- ScriptResourceInfo.cs
- RepeaterItem.cs
- ScriptDescriptor.cs
- DataGridRow.cs
- Attribute.cs
- CatalogZone.cs
- BlobPersonalizationState.cs
- FileDialogPermission.cs
- Effect.cs
- DictionarySectionHandler.cs
- DataFieldCollectionEditor.cs