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
- Mappings.cs
- invalidudtexception.cs
- EventMappingSettingsCollection.cs
- HttpCookie.cs
- HideDisabledControlAdapter.cs
- HttpCapabilitiesEvaluator.cs
- ExpressionPrinter.cs
- FrameworkEventSource.cs
- ExtendedProtectionPolicy.cs
- HtmlTitle.cs
- XamlBuildTaskServices.cs
- AssemblyFilter.cs
- WSHttpBindingBaseElement.cs
- InfoCardTraceRecord.cs
- FreezableDefaultValueFactory.cs
- DataStorage.cs
- XmlChildNodes.cs
- TextModifierScope.cs
- ConfigurationValues.cs
- RepeaterItemCollection.cs
- FocusTracker.cs
- XPathCompileException.cs
- DecimalStorage.cs
- XmlSchemaValidator.cs
- StylusDevice.cs
- Crypto.cs
- IIS7WorkerRequest.cs
- MessageSecurityVersionConverter.cs
- Listbox.cs
- BamlBinaryReader.cs
- DataGridViewCellValidatingEventArgs.cs
- PropertyInfoSet.cs
- ContainerSelectorBehavior.cs
- DigestTraceRecordHelper.cs
- FixedTextSelectionProcessor.cs
- WCFBuildProvider.cs
- WebPartTracker.cs
- DurableOperationAttribute.cs
- StickyNoteAnnotations.cs
- WindowsSysHeader.cs
- HostedTransportConfigurationBase.cs
- TypeUsageBuilder.cs
- ClientFormsAuthenticationCredentials.cs
- GenerateScriptTypeAttribute.cs
- SignatureGenerator.cs
- safesecurityhelperavalon.cs
- StringConverter.cs
- WebPart.cs
- SystemBrushes.cs
- Clause.cs
- XamlClipboardData.cs
- LogicalChannelCollection.cs
- DataGridViewHeaderCell.cs
- DropSourceBehavior.cs
- AppSettingsExpressionBuilder.cs
- WebCategoryAttribute.cs
- MethodToken.cs
- ExpandCollapsePatternIdentifiers.cs
- RadioButtonStandardAdapter.cs
- ConfigXmlElement.cs
- EpmContentSerializer.cs
- Section.cs
- TCEAdapterGenerator.cs
- GridViewRowPresenterBase.cs
- PolyLineSegmentFigureLogic.cs
- SwitchLevelAttribute.cs
- IRCollection.cs
- DateRangeEvent.cs
- ToolStripPanelRenderEventArgs.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- IERequestCache.cs
- TypefaceMetricsCache.cs
- StrongNameKeyPair.cs
- UrlParameterWriter.cs
- _BasicClient.cs
- ResourcesBuildProvider.cs
- SignedPkcs7.cs
- ReadContentAsBinaryHelper.cs
- Logging.cs
- FeatureSupport.cs
- X509Chain.cs
- ADMembershipUser.cs
- BindableAttribute.cs
- printdlgexmarshaler.cs
- HTTPNotFoundHandler.cs
- HandleCollector.cs
- OutputCacheEntry.cs
- RichTextBoxAutomationPeer.cs
- ManagedFilter.cs
- CodeThrowExceptionStatement.cs
- RegexStringValidator.cs
- ADRole.cs
- SQLDoubleStorage.cs
- InvalidComObjectException.cs
- LineSegment.cs
- BCLDebug.cs
- SoapObjectReader.cs
- SafeNativeMethods.cs
- LiteralLink.cs
- AppDomainShutdownMonitor.cs