Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ExtensionElement.cs / 1 / ExtensionElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.Configuration; public partial class ExtensionElement : ConfigurationElement { public ExtensionElement() { } public ExtensionElement(string name) : this() { if (String.IsNullOrEmpty(name)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name"); } this.Name = name; } public ExtensionElement(string name, string type) : this(name) { if (String.IsNullOrEmpty(type)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("type"); } this.Type = type; } [ConfigurationProperty(ConfigurationStrings.Name, Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)] [StringValidator(MinLength = 1)] public string Name { get { return (string)base[ConfigurationStrings.Name]; } set { if (String.IsNullOrEmpty(value)) { value = String.Empty; } base[ConfigurationStrings.Name] = value; } } [ConfigurationProperty(ConfigurationStrings.Type, Options = ConfigurationPropertyOptions.IsRequired)] [StringValidator(MinLength = 1)] public string Type { get { return (string)base[ConfigurationStrings.Type]; } set { if (String.IsNullOrEmpty(value)) { value = String.Empty; } base[ConfigurationStrings.Type] = value; } } } } // 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
- SchemaTypeEmitter.cs
- PartialToken.cs
- SessionStateSection.cs
- ResourceManager.cs
- QualificationDataItem.cs
- LoginName.cs
- Convert.cs
- CatalogZoneDesigner.cs
- PropertyIDSet.cs
- PersonalizationState.cs
- AnnotationObservableCollection.cs
- UniqueIdentifierService.cs
- RelatedCurrencyManager.cs
- SymbolType.cs
- OutputCacheSettingsSection.cs
- RegexCode.cs
- ObjectCacheHost.cs
- FlatButtonAppearance.cs
- QueryableDataSourceView.cs
- WindowInteractionStateTracker.cs
- WebPartConnectionsCancelEventArgs.cs
- DocumentOrderComparer.cs
- TypeElement.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- LongMinMaxAggregationOperator.cs
- HwndSourceKeyboardInputSite.cs
- RegexStringValidator.cs
- hresults.cs
- Annotation.cs
- HttpInputStream.cs
- WorkflowStateRollbackService.cs
- CodeIdentifier.cs
- HtmlForm.cs
- EUCJPEncoding.cs
- ImageMapEventArgs.cs
- NullableLongSumAggregationOperator.cs
- NominalTypeEliminator.cs
- AddressHeader.cs
- WebContentFormatHelper.cs
- RestHandlerFactory.cs
- SqlStream.cs
- ItemsChangedEventArgs.cs
- ScopelessEnumAttribute.cs
- Size3DValueSerializer.cs
- FontWeights.cs
- coordinatorfactory.cs
- TempFiles.cs
- FileDialog.cs
- CollectionDataContract.cs
- SynchronizedInputProviderWrapper.cs
- WebConfigurationHostFileChange.cs
- PageOrientation.cs
- DBPropSet.cs
- ConsumerConnectionPoint.cs
- AnimationException.cs
- StylusLogic.cs
- DataSourceCacheDurationConverter.cs
- ConnectivityStatus.cs
- NGCPageContentCollectionSerializerAsync.cs
- TableProviderWrapper.cs
- GregorianCalendar.cs
- XmlSchemaNotation.cs
- ItemList.cs
- RuntimeHelpers.cs
- DebugHandleTracker.cs
- TaiwanLunisolarCalendar.cs
- XhtmlBasicValidationSummaryAdapter.cs
- HttpCapabilitiesBase.cs
- ArraySortHelper.cs
- LayoutEvent.cs
- SchemaNamespaceManager.cs
- XmlIterators.cs
- NamedObject.cs
- RadioButtonRenderer.cs
- ListBox.cs
- InternalConfigSettingsFactory.cs
- Utility.cs
- AuthenticationConfig.cs
- NetSectionGroup.cs
- Point3DKeyFrameCollection.cs
- XmlSchemaDatatype.cs
- UnionCqlBlock.cs
- CanExecuteRoutedEventArgs.cs
- WindowsSlider.cs
- PackWebResponse.cs
- ItemList.cs
- Int64Storage.cs
- PageTheme.cs
- WebBrowserEvent.cs
- RuleRef.cs
- LinqDataSourceContextData.cs
- GridEntry.cs
- JsonReader.cs
- DesignTimeXamlWriter.cs
- CodeIdentifier.cs
- FixUp.cs
- GridViewRowEventArgs.cs
- FreezableCollection.cs
- LicenseException.cs
- FamilyTypefaceCollection.cs