Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / Activities / Tracking / Configuration / AnnotationElement.cs / 1305376 / AnnotationElement.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activities.Tracking.Configuration { using System.Configuration; using System.Runtime; using System.Diagnostics.CodeAnalysis; [Fx.Tag.XamlVisible(false)] public class AnnotationElement : TrackingConfigurationElement { ConfigurationPropertyCollection properties; protected override ConfigurationPropertyCollection Properties { get { if (this.properties == null) { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(new ConfigurationProperty(TrackingConfigurationStrings.Name, typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey)); properties.Add(new ConfigurationProperty(TrackingConfigurationStrings.Value, typeof(System.String), string.Empty, null, new System.Configuration.StringValidator(0, 2147483647, null), System.Configuration.ConfigurationPropertyOptions.IsRequired)); this.properties = properties; } return this.properties; } } [SuppressMessage(FxCop.Category.Configuration, FxCop.Rule.ConfigurationPropertyAttributeRule, Justification = "This property is defined by the base class to compute unique key.")] public override object ElementKey { get { return this.Name; } } [ConfigurationProperty(TrackingConfigurationStrings.Name, IsKey = true, IsRequired = true)] [StringValidator(MinLength = 0)] [SuppressMessage(FxCop.Category.Configuration, FxCop.Rule.ConfigurationValidatorAttributeRule, MessageId = "System.ServiceModel.Activities.Tracking.Configuration.AnnotationElement.Name", Justification = "StringValidator verifies minimum size")] public string Name { get { return (string)base[TrackingConfigurationStrings.Name]; } set { base[TrackingConfigurationStrings.Name] = value; } } [ConfigurationProperty(TrackingConfigurationStrings.Value, IsRequired = true)] [StringValidator(MinLength = 0)] [SuppressMessage(FxCop.Category.Configuration, FxCop.Rule.ConfigurationValidatorAttributeRule, MessageId = "System.ServiceModel.Activities.Tracking.Configuration.AnnotationElement.Value", Justification = "StringValidator verifies minimum size")] public string Value { get { return (string)base[TrackingConfigurationStrings.Value]; } set { base[TrackingConfigurationStrings.Value] = value; } } } } // 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
- KeyPullup.cs
- DesignBindingValueUIHandler.cs
- SID.cs
- Visitor.cs
- TableCellAutomationPeer.cs
- CustomAttributeFormatException.cs
- HtmlShim.cs
- IERequestCache.cs
- SystemEvents.cs
- FixedPageAutomationPeer.cs
- MembershipSection.cs
- DrawingContextWalker.cs
- AnnotationResourceChangedEventArgs.cs
- SerialReceived.cs
- CheckedListBox.cs
- DataStorage.cs
- DecimalConstantAttribute.cs
- TreeViewAutomationPeer.cs
- ProcessHostServerConfig.cs
- RightNameExpirationInfoPair.cs
- DesignOnlyAttribute.cs
- MailSettingsSection.cs
- ReadOnlyMetadataCollection.cs
- UmAlQuraCalendar.cs
- MetadataAssemblyHelper.cs
- SequentialWorkflowHeaderFooter.cs
- Pointer.cs
- CodeDefaultValueExpression.cs
- DataService.cs
- MSAAEventDispatcher.cs
- RulePatternOps.cs
- CopyOnWriteList.cs
- ScriptingWebServicesSectionGroup.cs
- PropertyEntry.cs
- OleDbError.cs
- SystemWebSectionGroup.cs
- PixelFormats.cs
- AttachedAnnotation.cs
- FontSource.cs
- TextParagraphProperties.cs
- ItemCheckEvent.cs
- XmlReader.cs
- XmlSerializerSection.cs
- TraversalRequest.cs
- Tokenizer.cs
- CompilerTypeWithParams.cs
- ObjectParameterCollection.cs
- ShortcutKeysEditor.cs
- NonParentingControl.cs
- XmlMtomWriter.cs
- PlainXmlDeserializer.cs
- FormsAuthenticationCredentials.cs
- MethodBuilderInstantiation.cs
- ModuleBuilder.cs
- InterleavedZipPartStream.cs
- Stroke2.cs
- Predicate.cs
- RuntimeHelpers.cs
- Conditional.cs
- PrimitiveXmlSerializers.cs
- DynamicQueryableWrapper.cs
- GeneralTransform3DTo2D.cs
- ColorContextHelper.cs
- IndexerNameAttribute.cs
- PrintingPermission.cs
- MinMaxParagraphWidth.cs
- MonikerHelper.cs
- SharedConnectionWorkflowTransactionService.cs
- ActionMismatchAddressingException.cs
- ClrProviderManifest.cs
- DataGridViewColumn.cs
- RouteItem.cs
- MustUnderstandBehavior.cs
- BitVector32.cs
- Stack.cs
- EFAssociationProvider.cs
- SystemBrushes.cs
- RuleSettingsCollection.cs
- TableCellCollection.cs
- SwitchLevelAttribute.cs
- DataGridViewComboBoxColumn.cs
- TraceContextEventArgs.cs
- CommonDialog.cs
- GeometryCollection.cs
- CommandEventArgs.cs
- IdnMapping.cs
- IntSecurity.cs
- XmlReader.cs
- TableItemStyle.cs
- SelectionUIService.cs
- TemplateParser.cs
- ProxyWebPartManagerDesigner.cs
- MemoryRecordBuffer.cs
- Msec.cs
- WebPartTransformer.cs
- PreviewKeyDownEventArgs.cs
- Color.cs
- DelimitedListTraceListener.cs
- HttpResponseInternalWrapper.cs
- ResourcePermissionBase.cs