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
- MaskedTextBoxTextEditor.cs
- WindowsIdentity.cs
- SafeReversePInvokeHandle.cs
- ComplusTypeValidator.cs
- XappLauncher.cs
- XmlnsDefinitionAttribute.cs
- PageBreakRecord.cs
- objectquery_tresulttype.cs
- UniformGrid.cs
- PixelShader.cs
- StreamWriter.cs
- XmlSchemaAnyAttribute.cs
- IgnoreFlushAndCloseStream.cs
- DataObjectMethodAttribute.cs
- QueueProcessor.cs
- cryptoapiTransform.cs
- BasicViewGenerator.cs
- ActivitiesCollection.cs
- DPAPIProtectedConfigurationProvider.cs
- QueryInterceptorAttribute.cs
- ChildTable.cs
- TokenBasedSetEnumerator.cs
- DoubleLinkList.cs
- Parser.cs
- BypassElement.cs
- TypeResolver.cs
- MiniLockedBorderGlyph.cs
- DataReceivedEventArgs.cs
- mil_commands.cs
- FormViewCommandEventArgs.cs
- CapabilitiesUse.cs
- RectangleF.cs
- StylusPointPropertyInfoDefaults.cs
- CodePageEncoding.cs
- Link.cs
- IDReferencePropertyAttribute.cs
- Boolean.cs
- Menu.cs
- C14NUtil.cs
- SqlCommandBuilder.cs
- GroupBox.cs
- SchemaConstraints.cs
- WeakReadOnlyCollection.cs
- WebSysDisplayNameAttribute.cs
- Style.cs
- WindowsFormsLinkLabel.cs
- _SingleItemRequestCache.cs
- GridPatternIdentifiers.cs
- CursorEditor.cs
- DropShadowBitmapEffect.cs
- TextEffect.cs
- Size3DValueSerializer.cs
- SecurityCriticalDataForSet.cs
- Application.cs
- XmlSchemaExporter.cs
- TypeBuilderInstantiation.cs
- SchemaAttDef.cs
- WmiEventSink.cs
- DirectoryInfo.cs
- PreservationFileReader.cs
- SqlRetyper.cs
- NumericPagerField.cs
- DoubleCollection.cs
- StyleXamlParser.cs
- UnaryExpression.cs
- Knowncolors.cs
- GridItemPattern.cs
- Single.cs
- ColorEditor.cs
- RuntimeArgumentHandle.cs
- XmlSchemaObject.cs
- MetadataItemEmitter.cs
- PackageProperties.cs
- LocalizableResourceBuilder.cs
- BaseProcessor.cs
- SimpleWebHandlerParser.cs
- Menu.cs
- SudsWriter.cs
- ValueConversionAttribute.cs
- InteropBitmapSource.cs
- JournalEntryStack.cs
- ItemsPanelTemplate.cs
- HostingEnvironmentSection.cs
- SqlMethods.cs
- TargetFrameworkUtil.cs
- GenericUI.cs
- TextServicesLoader.cs
- XmlDictionaryString.cs
- ProtocolElement.cs
- CustomErrorsSection.cs
- PeerDuplexChannel.cs
- CurrencyManager.cs
- HttpCapabilitiesSectionHandler.cs
- IdSpace.cs
- ContextQuery.cs
- ResourceExpressionEditorSheet.cs
- WebSysDescriptionAttribute.cs
- RIPEMD160.cs
- TabPanel.cs
- DataSvcMapFileSerializer.cs