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
- InternalConfigSettingsFactory.cs
- MouseWheelEventArgs.cs
- SafeLocalAllocation.cs
- SocketInformation.cs
- RowParagraph.cs
- UriTemplateVariablePathSegment.cs
- CacheVirtualItemsEvent.cs
- WebBaseEventKeyComparer.cs
- PointUtil.cs
- ConnectionStringsSection.cs
- EventMappingSettings.cs
- StyleSheetComponentEditor.cs
- ReadingWritingEntityEventArgs.cs
- ServiceDescriptions.cs
- CheckBoxFlatAdapter.cs
- ChannelAcceptor.cs
- DelegatingConfigHost.cs
- SendingRequestEventArgs.cs
- XmlCharCheckingWriter.cs
- ObjectDataSourceDisposingEventArgs.cs
- WindowsPen.cs
- UIHelper.cs
- TextChange.cs
- TracedNativeMethods.cs
- Formatter.cs
- User.cs
- IIS7UserPrincipal.cs
- GridPatternIdentifiers.cs
- XmlIterators.cs
- AttachedPropertyInfo.cs
- DataBindEngine.cs
- ByteFacetDescriptionElement.cs
- InternalCache.cs
- MaterializeFromAtom.cs
- SQLByteStorage.cs
- XsdCachingReader.cs
- DataTableMappingCollection.cs
- _Events.cs
- Compiler.cs
- CompilerResults.cs
- ViewService.cs
- IDQuery.cs
- initElementDictionary.cs
- ComponentResourceKey.cs
- XmlSchemaSet.cs
- contentDescriptor.cs
- SchemaMapping.cs
- DashStyles.cs
- PresentationAppDomainManager.cs
- CqlLexerHelpers.cs
- ListBox.cs
- VirtualizedContainerService.cs
- ResourceDictionary.cs
- ListBox.cs
- mongolianshape.cs
- BinHexDecoder.cs
- Splitter.cs
- LowerCaseStringConverter.cs
- SQLCharsStorage.cs
- CharacterBufferReference.cs
- CalendarKeyboardHelper.cs
- EditorAttributeInfo.cs
- Screen.cs
- DependencyPropertyValueSerializer.cs
- DbConnectionPoolOptions.cs
- GuidTagList.cs
- ObjectAnimationUsingKeyFrames.cs
- JsonClassDataContract.cs
- XmlStringTable.cs
- BooleanExpr.cs
- DataGridViewCellEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- Menu.cs
- CodeGenHelper.cs
- BindingNavigatorDesigner.cs
- IxmlLineInfo.cs
- DataGridColumnEventArgs.cs
- DirectoryObjectSecurity.cs
- XslException.cs
- FragmentQueryKB.cs
- WorkflowOperationBehavior.cs
- DateTimeUtil.cs
- RSAPKCS1SignatureDeformatter.cs
- GroupJoinQueryOperator.cs
- ObfuscationAttribute.cs
- EntityCommandDefinition.cs
- sqlser.cs
- ScalarConstant.cs
- EditorPartDesigner.cs
- SplineKeyFrames.cs
- KerberosSecurityTokenAuthenticator.cs
- QuerySettings.cs
- AffineTransform3D.cs
- Container.cs
- SafeHandle.cs
- LayoutEditorPart.cs
- documentsequencetextcontainer.cs
- EmbeddedMailObjectsCollection.cs
- LabelTarget.cs
- DataServiceKeyAttribute.cs