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
- MenuItem.cs
- XmlIlGenerator.cs
- WebPartConnectionCollection.cs
- PrinterSettings.cs
- DataPagerFieldCollection.cs
- BoundColumn.cs
- StateDesigner.Helpers.cs
- ConfigurationSectionHelper.cs
- InlineUIContainer.cs
- FontDifferentiator.cs
- SafeNativeMethodsCLR.cs
- ReservationNotFoundException.cs
- UndirectedGraph.cs
- StructuredType.cs
- MeshGeometry3D.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- RecognizerStateChangedEventArgs.cs
- DataGridAddNewRow.cs
- AssociationTypeEmitter.cs
- VideoDrawing.cs
- Int16AnimationBase.cs
- ThicknessConverter.cs
- RequiredAttributeAttribute.cs
- ArrangedElement.cs
- oledbconnectionstring.cs
- StrokeCollection2.cs
- PenLineCapValidation.cs
- DataGridViewSortCompareEventArgs.cs
- SQLInt16Storage.cs
- ArgumentOutOfRangeException.cs
- SqlDataSourceView.cs
- CodeTypeParameterCollection.cs
- XmlHierarchicalDataSourceView.cs
- EntityContainerEmitter.cs
- CompiledELinqQueryState.cs
- TabItemAutomationPeer.cs
- FontFaceLayoutInfo.cs
- PrinterResolution.cs
- DataGridBeginningEditEventArgs.cs
- DataGridViewImageColumn.cs
- LineServicesCallbacks.cs
- FixUp.cs
- FrameworkContextData.cs
- X509CertificateChain.cs
- ProcessModelInfo.cs
- Soap12ProtocolReflector.cs
- MergeFilterQuery.cs
- ValidationPropertyAttribute.cs
- UpDownBase.cs
- PointF.cs
- TaiwanCalendar.cs
- D3DImage.cs
- SQLDecimal.cs
- ProfilePropertyMetadata.cs
- DashStyle.cs
- BadImageFormatException.cs
- SiteMap.cs
- ReferentialConstraintRoleElement.cs
- StaticExtensionConverter.cs
- ShellProvider.cs
- FileChangeNotifier.cs
- ModulesEntry.cs
- WebDisplayNameAttribute.cs
- ContentPropertyAttribute.cs
- CorrelationManager.cs
- XmlDocumentFragment.cs
- ObjectConverter.cs
- TraceContextEventArgs.cs
- WebPartActionVerb.cs
- _HeaderInfo.cs
- BaseCodeDomTreeGenerator.cs
- SizeChangedInfo.cs
- ButtonFlatAdapter.cs
- CommittableTransaction.cs
- SecurityContext.cs
- ConfigurationStrings.cs
- SchemaType.cs
- Misc.cs
- IgnoreSection.cs
- AnonymousIdentificationModule.cs
- CounterCreationDataCollection.cs
- ChangeNode.cs
- GridViewRowCollection.cs
- SecurityHelper.cs
- SoapElementAttribute.cs
- TextMetrics.cs
- ParserExtension.cs
- LinearKeyFrames.cs
- ListBase.cs
- ListDictionary.cs
- HtmlInputText.cs
- WSDualHttpBindingElement.cs
- PackageRelationship.cs
- InfoCardBinaryReader.cs
- TextModifierScope.cs
- RootProjectionNode.cs
- DataGridViewCellLinkedList.cs
- WSSecureConversationDec2005.cs
- RegexInterpreter.cs
- SignatureHelper.cs