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
- ToolStripPanel.cs
- ProfileModule.cs
- SqlNamer.cs
- IndexerNameAttribute.cs
- Pair.cs
- XmlSchemaProviderAttribute.cs
- DbParameterHelper.cs
- UIElement3DAutomationPeer.cs
- ProtocolViolationException.cs
- XmlChoiceIdentifierAttribute.cs
- EdmPropertyAttribute.cs
- ListViewItemCollectionEditor.cs
- ProxyGenerator.cs
- CompoundFileReference.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- AffineTransform3D.cs
- ValidatorCompatibilityHelper.cs
- Exceptions.cs
- ColumnResizeAdorner.cs
- EffectiveValueEntry.cs
- InheritanceAttribute.cs
- InputScopeManager.cs
- PlatformCulture.cs
- ListViewPagedDataSource.cs
- RSAPKCS1SignatureDeformatter.cs
- DataGridViewCellFormattingEventArgs.cs
- InputScopeConverter.cs
- Int32.cs
- OpenFileDialog.cs
- WinInetCache.cs
- Int32Converter.cs
- DataGridViewAdvancedBorderStyle.cs
- CompilerGeneratedAttribute.cs
- _TransmitFileOverlappedAsyncResult.cs
- LocalizationComments.cs
- InputScopeNameConverter.cs
- ProcessThreadCollection.cs
- SetStateEventArgs.cs
- FillErrorEventArgs.cs
- SettingsSavedEventArgs.cs
- Registry.cs
- FtpWebRequest.cs
- ProfileModule.cs
- PackagePart.cs
- CompoundFileStreamReference.cs
- MonthChangedEventArgs.cs
- DispatcherProcessingDisabled.cs
- FormsAuthenticationUserCollection.cs
- DataSourceHelper.cs
- Geometry.cs
- Label.cs
- InputEventArgs.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- FrameSecurityDescriptor.cs
- InkCanvasSelection.cs
- EnumBuilder.cs
- CheckoutException.cs
- Metafile.cs
- ValueChangedEventManager.cs
- DataServiceHostFactory.cs
- CellTreeNodeVisitors.cs
- SubMenuStyleCollection.cs
- EventMappingSettings.cs
- LabelLiteral.cs
- ComponentEvent.cs
- ListViewEditEventArgs.cs
- SecurityTokenReferenceStyle.cs
- ListViewInsertionMark.cs
- JsonDataContract.cs
- EnvironmentPermission.cs
- InvokePattern.cs
- FreezableOperations.cs
- DetailsViewRow.cs
- CombinedGeometry.cs
- VideoDrawing.cs
- AlternateViewCollection.cs
- DataListItemCollection.cs
- EntityDataSourceChangingEventArgs.cs
- CodePageUtils.cs
- SupportingTokenProviderSpecification.cs
- WpfGeneratedKnownTypes.cs
- CodeSubDirectory.cs
- IdleTimeoutMonitor.cs
- RowToFieldTransformer.cs
- mactripleDES.cs
- nulltextnavigator.cs
- ApplyImportsAction.cs
- SecurityResources.cs
- ToolStripDropDownClosedEventArgs.cs
- ComboBoxRenderer.cs
- ErrorInfoXmlDocument.cs
- WindowsSspiNegotiation.cs
- StringInfo.cs
- JavaScriptString.cs
- ListBase.cs
- WindowsStartMenu.cs
- DrawItemEvent.cs
- SoundPlayerAction.cs
- SecurityRuntime.cs
- Closure.cs