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
- SubqueryRules.cs
- BmpBitmapEncoder.cs
- TableSectionStyle.cs
- EntityDataSource.cs
- StandardBindingElementCollection.cs
- ContentValidator.cs
- KeyNotFoundException.cs
- HostProtectionException.cs
- XmlSubtreeReader.cs
- EraserBehavior.cs
- InputReferenceExpression.cs
- TextSegment.cs
- ClientTarget.cs
- GridViewDesigner.cs
- ProcessHostServerConfig.cs
- EventPropertyMap.cs
- ButtonBaseAdapter.cs
- UITypeEditor.cs
- ProgressBar.cs
- WindowsRichEditRange.cs
- InputGestureCollection.cs
- VarInfo.cs
- BlobPersonalizationState.cs
- AutomationEventArgs.cs
- PasswordPropertyTextAttribute.cs
- ClassDataContract.cs
- Panel.cs
- TypeDescriptorContext.cs
- DateRangeEvent.cs
- BrowserTree.cs
- XmlIlTypeHelper.cs
- EndpointAddressElementBase.cs
- WinCategoryAttribute.cs
- HScrollBar.cs
- SelectionRange.cs
- PathGeometry.cs
- SecurityDocument.cs
- WebPartZoneBase.cs
- FileCodeGroup.cs
- SchemaImporter.cs
- ByValueEqualityComparer.cs
- LocationUpdates.cs
- SoapServerMethod.cs
- TriggerActionCollection.cs
- BlurEffect.cs
- CapabilitiesRule.cs
- DataGridState.cs
- DataGridViewBand.cs
- IdentityHolder.cs
- NullableBoolConverter.cs
- ScrollBar.cs
- AssemblyHash.cs
- XmlObjectSerializer.cs
- ThreadAttributes.cs
- LoginViewDesigner.cs
- GestureRecognizer.cs
- MatrixCamera.cs
- StorageFunctionMapping.cs
- UserNamePasswordValidationMode.cs
- AstTree.cs
- CodeArrayCreateExpression.cs
- MinimizableAttributeTypeConverter.cs
- QilVisitor.cs
- DaylightTime.cs
- Debugger.cs
- OrderPreservingSpoolingTask.cs
- RegexCapture.cs
- XmlQualifiedNameTest.cs
- BackgroundFormatInfo.cs
- MailHeaderInfo.cs
- BuildTopDownAttribute.cs
- BaseInfoTable.cs
- ExpressionEvaluator.cs
- ExpressionList.cs
- WindowInteractionStateTracker.cs
- PropertyChangingEventArgs.cs
- ClientProxyGenerator.cs
- FrameworkElementFactory.cs
- ResourceDisplayNameAttribute.cs
- SQLGuid.cs
- StandardCommands.cs
- RadioButtonAutomationPeer.cs
- MethodImplAttribute.cs
- Memoizer.cs
- Accessors.cs
- _NetworkingPerfCounters.cs
- LogWriteRestartAreaAsyncResult.cs
- Win32Native.cs
- DefaultValueTypeConverter.cs
- XsdValidatingReader.cs
- WebPartMovingEventArgs.cs
- SecurityPermission.cs
- Base64Decoder.cs
- AxImporter.cs
- MetadataCache.cs
- ProfileParameter.cs
- cryptoapiTransform.cs
- DataGridViewSelectedRowCollection.cs
- DataGridLinkButton.cs
- CqlIdentifiers.cs