Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / Workflow / Activities / WorkflowServiceAttributesTypeConverter.cs / 1305376 / WorkflowServiceAttributesTypeConverter.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Workflow.Activities { using System.ComponentModel; class WorkflowServiceAttributesTypeConverter : TypeConverter { public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { // TypeDescriptor.GetProperties is used here to get the sub properties of the property that we want to be able // to be expandable in the property browser PropertyDescriptorCollection subProperties = TypeDescriptor.GetProperties(value, new Attribute[] { new BrowsableAttribute(true) }); return subProperties; } public override bool GetPropertiesSupported(ITypeDescriptorContext context) { // This is to make the property expandable into sub properties int he property browser return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcConnectionHandle.cs
- DoubleStorage.cs
- WindowsTokenRoleProvider.cs
- DbInsertCommandTree.cs
- Divide.cs
- SafeNativeMethods.cs
- ListSortDescription.cs
- BuilderInfo.cs
- FixedLineResult.cs
- GenerateScriptTypeAttribute.cs
- Symbol.cs
- Executor.cs
- CreatingCookieEventArgs.cs
- DataGridRelationshipRow.cs
- ResourcePart.cs
- SplineKeyFrames.cs
- NotifyIcon.cs
- WebEvents.cs
- EdmSchemaAttribute.cs
- InvalidPrinterException.cs
- InfoCardXmlSerializer.cs
- PropertyEmitter.cs
- TabControlEvent.cs
- FreezableCollection.cs
- DbExpressionVisitor.cs
- _NetRes.cs
- ColumnProvider.cs
- NavigationProperty.cs
- SessionPageStateSection.cs
- Convert.cs
- GeneralTransform3DTo2D.cs
- CommandSet.cs
- RequestQueue.cs
- ActivitiesCollection.cs
- UpdateCommandGenerator.cs
- ClaimSet.cs
- Stylesheet.cs
- FlowDocument.cs
- SimpleBitVector32.cs
- HierarchicalDataBoundControl.cs
- Material.cs
- CollectionViewProxy.cs
- TreeViewBindingsEditor.cs
- ObjectSecurity.cs
- XmlCountingReader.cs
- SHA1.cs
- DecimalStorage.cs
- OdbcConnectionOpen.cs
- Single.cs
- UrlPropertyAttribute.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- XpsFilter.cs
- Clock.cs
- ToolboxCategoryItems.cs
- SourceFileInfo.cs
- GridEntry.cs
- XmlILOptimizerVisitor.cs
- XmlExtensionFunction.cs
- BitFlagsGenerator.cs
- Transform3DGroup.cs
- PatternMatcher.cs
- EventDescriptor.cs
- SHA512.cs
- NameNode.cs
- BitmapEffectrendercontext.cs
- CultureMapper.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- FontFamilyConverter.cs
- CryptoConfig.cs
- ListView.cs
- PrintDialogException.cs
- WMICapabilities.cs
- HttpApplicationFactory.cs
- HttpProtocolImporter.cs
- ResizeGrip.cs
- EditorZone.cs
- HttpModuleCollection.cs
- BitmapCodecInfo.cs
- TextReader.cs
- coordinatorscratchpad.cs
- ZipIOExtraFieldPaddingElement.cs
- ConcurrentDictionary.cs
- ListViewHitTestInfo.cs
- TreeViewItem.cs
- DataGridLinkButton.cs
- GridViewUpdateEventArgs.cs
- PrePrepareMethodAttribute.cs
- _HeaderInfoTable.cs
- Encoder.cs
- RawKeyboardInputReport.cs
- FieldToken.cs
- XmlSyndicationContent.cs
- FixedTextPointer.cs
- X509ChainElement.cs
- XmlNodeChangedEventManager.cs
- MenuItemStyle.cs
- SoapInteropTypes.cs
- CompoundFileStreamReference.cs
- LayoutTableCell.cs
- ProviderSettings.cs