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
- SafeRightsManagementHandle.cs
- BindingExpression.cs
- EntityViewGenerator.cs
- SQLStringStorage.cs
- TextLineResult.cs
- DetailsViewInsertEventArgs.cs
- UnsignedPublishLicense.cs
- ExtendedProtectionPolicyElement.cs
- wgx_sdk_version.cs
- NTAccount.cs
- StrongNameMembershipCondition.cs
- ValidatorUtils.cs
- NameValueSectionHandler.cs
- CreateUserWizard.cs
- Html32TextWriter.cs
- Validator.cs
- MetadataProperty.cs
- ZipPackage.cs
- ProtocolElement.cs
- OracleMonthSpan.cs
- Thread.cs
- ToolStripPanel.cs
- CqlWriter.cs
- Page.cs
- PrimitiveSchema.cs
- GenericEnumerator.cs
- QilChoice.cs
- SiteOfOriginContainer.cs
- OperatorExpressions.cs
- MessageSecurityOverMsmqElement.cs
- MobileCategoryAttribute.cs
- LinearKeyFrames.cs
- LeaseManager.cs
- EncodingNLS.cs
- GeneralTransform.cs
- LoginDesignerUtil.cs
- BinHexEncoding.cs
- XmlMtomWriter.cs
- ZipFileInfo.cs
- XPathDocumentIterator.cs
- WhitespaceRuleReader.cs
- BitStream.cs
- Publisher.cs
- ImageCodecInfoPrivate.cs
- DataGridViewRowStateChangedEventArgs.cs
- SqlBuilder.cs
- bidPrivateBase.cs
- UIElement3DAutomationPeer.cs
- FixedSOMPageConstructor.cs
- EntityDataSourceContextDisposingEventArgs.cs
- Range.cs
- DisplayNameAttribute.cs
- ReturnEventArgs.cs
- CollectionViewSource.cs
- ValueSerializerAttribute.cs
- MailAddressParser.cs
- HttpHandlersSection.cs
- XhtmlBasicFormAdapter.cs
- PagedDataSource.cs
- EntitySqlQueryCacheKey.cs
- CellParaClient.cs
- ConfigurationStrings.cs
- KoreanCalendar.cs
- RenderOptions.cs
- DBConnectionString.cs
- XpsSerializationManagerAsync.cs
- LongAverageAggregationOperator.cs
- ProcessInputEventArgs.cs
- PropertyEmitter.cs
- CodeVariableDeclarationStatement.cs
- SqlFunctionAttribute.cs
- SequenceDesigner.cs
- DefaultValueConverter.cs
- ResourceDescriptionAttribute.cs
- HwndPanningFeedback.cs
- SystemNetHelpers.cs
- EventProxy.cs
- SHA512Managed.cs
- Column.cs
- DeflateStream.cs
- CurrencyManager.cs
- ElementsClipboardData.cs
- smtpconnection.cs
- ScriptingRoleServiceSection.cs
- WindowsFormsHelpers.cs
- Exceptions.cs
- DataGridViewElement.cs
- CommentAction.cs
- Cursor.cs
- SafeSecurityHandles.cs
- Authorization.cs
- TypeDelegator.cs
- SocketInformation.cs
- VectorAnimationBase.cs
- ClientProtocol.cs
- Help.cs
- loginstatus.cs
- CTreeGenerator.cs
- DataSourceCache.cs
- ObjectTokenCategory.cs