Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / NamedServiceModelExtensionCollectionElement.cs / 1 / NamedServiceModelExtensionCollectionElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.Configuration; public abstract class NamedServiceModelExtensionCollectionElement: ServiceModelExtensionCollectionElement where TServiceModelExtensionElement : ServiceModelExtensionElement { ConfigurationPropertyCollection properties = null; internal NamedServiceModelExtensionCollectionElement(string extensionCollectionName, string name) : base(extensionCollectionName) { if (!String.IsNullOrEmpty(name)) { this.Name = name; } } [ConfigurationProperty(ConfigurationStrings.Name, Options = ConfigurationPropertyOptions.IsKey | ConfigurationPropertyOptions.IsRequired)] [StringValidator(MinLength = 1)] public string Name { get { return (string)base[ConfigurationStrings.Name]; } set { if (String.IsNullOrEmpty(value)) { value = String.Empty; } base[ConfigurationStrings.Name] = value; this.SetIsModified(); } } protected override ConfigurationPropertyCollection Properties { get { if (this.properties == null) { this.properties = base.Properties; this.properties.Add(new ConfigurationProperty(ConfigurationStrings.Name, typeof(System.String), null, null, new StringValidator(1), System.Configuration.ConfigurationPropertyOptions.IsKey)); } return this.properties; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompositeTypefaceMetrics.cs
- TextTreeUndoUnit.cs
- CodeMemberField.cs
- TypeInitializationException.cs
- TableRowCollection.cs
- SqlTriggerAttribute.cs
- ProxyElement.cs
- ForeignKeyConstraint.cs
- JoinElimination.cs
- DelayedRegex.cs
- ObsoleteAttribute.cs
- ToolStripItemImageRenderEventArgs.cs
- WebDisplayNameAttribute.cs
- CodeThrowExceptionStatement.cs
- Vector3DAnimationBase.cs
- XmlEnumAttribute.cs
- Parser.cs
- ComplexBindingPropertiesAttribute.cs
- TokenBasedSet.cs
- CustomAttribute.cs
- SecurityTokenAuthenticator.cs
- CodeIterationStatement.cs
- EDesignUtil.cs
- ReadOnlyPropertyMetadata.cs
- SmuggledIUnknown.cs
- Drawing.cs
- ClientSettingsSection.cs
- SiteMapNodeItemEventArgs.cs
- InternalsVisibleToAttribute.cs
- HtmlShim.cs
- WindowsContainer.cs
- CalendarDay.cs
- WebPartExportVerb.cs
- WindowsListViewGroup.cs
- FocusWithinProperty.cs
- PropertyEntry.cs
- LocatorManager.cs
- DataTableExtensions.cs
- ConfigurationValidatorAttribute.cs
- SimpleHandlerBuildProvider.cs
- ViewCellRelation.cs
- ActivityExecutorDelegateInfo.cs
- State.cs
- NamespaceTable.cs
- TemplatedControlDesigner.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- StringExpressionSet.cs
- DelegatingStream.cs
- ModelTreeManager.cs
- FileRecordSequenceCompletedAsyncResult.cs
- IDispatchConstantAttribute.cs
- XamlBrushSerializer.cs
- TerminatorSinks.cs
- DefinitionBase.cs
- ConfigurationSettings.cs
- ConfigXmlAttribute.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- RepeatButton.cs
- Deflater.cs
- AsymmetricSignatureFormatter.cs
- ProfileSettingsCollection.cs
- Pointer.cs
- SymmetricAlgorithm.cs
- EntityDataSourceEntityTypeFilterItem.cs
- ObjectTag.cs
- DesignTimeParseData.cs
- HwndAppCommandInputProvider.cs
- AnchoredBlock.cs
- MessageEventSubscriptionService.cs
- WindowsClientElement.cs
- AudioSignalProblemOccurredEventArgs.cs
- DataGridViewCell.cs
- PageAsyncTaskManager.cs
- DtdParser.cs
- DataGridRelationshipRow.cs
- HtmlButton.cs
- ScriptDescriptor.cs
- AssemblyNameProxy.cs
- SocketCache.cs
- mansign.cs
- BypassElementCollection.cs
- CompositeControlDesigner.cs
- AutoGeneratedFieldProperties.cs
- ApplicationServiceHelper.cs
- RectangleGeometry.cs
- InternalBufferOverflowException.cs
- TypefaceCollection.cs
- JoinElimination.cs
- CollectionViewGroupRoot.cs
- AttributeProviderAttribute.cs
- MailHeaderInfo.cs
- MemoryMappedViewAccessor.cs
- SmtpNegotiateAuthenticationModule.cs
- Accessible.cs
- OracleParameter.cs
- DocumentXPathNavigator.cs
- TransformedBitmap.cs
- ReferenceEqualityComparer.cs
- MetadataCacheItem.cs
- FormClosedEvent.cs