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
- SafeNativeMethods.cs
- Exception.cs
- CalendarKeyboardHelper.cs
- _OverlappedAsyncResult.cs
- COSERVERINFO.cs
- AnimationTimeline.cs
- VirtualizingStackPanel.cs
- SwitchAttribute.cs
- SubclassTypeValidatorAttribute.cs
- AssemblyAttributes.cs
- StickyNoteHelper.cs
- AssemblyCollection.cs
- FlowDocumentReaderAutomationPeer.cs
- OdbcStatementHandle.cs
- EntityContainer.cs
- FontStretches.cs
- AssociationTypeEmitter.cs
- SqlNodeTypeOperators.cs
- NumberAction.cs
- FormParameter.cs
- SQlBooleanStorage.cs
- ConsumerConnectionPoint.cs
- HttpListenerContext.cs
- ExpressionConverter.cs
- HttpContextServiceHost.cs
- Errors.cs
- WebSysDefaultValueAttribute.cs
- ActivityBindForm.cs
- UIAgentCrashedException.cs
- DeadCharTextComposition.cs
- SharedPerformanceCounter.cs
- OleDbInfoMessageEvent.cs
- PasswordPropertyTextAttribute.cs
- ReachUIElementCollectionSerializerAsync.cs
- RectAnimationClockResource.cs
- SizeAnimationUsingKeyFrames.cs
- IdentitySection.cs
- Baml6Assembly.cs
- MatchingStyle.cs
- XmlChildEnumerator.cs
- AccessibilityHelperForXpWin2k3.cs
- OverflowException.cs
- SafeLibraryHandle.cs
- ReferenceConverter.cs
- ViewManager.cs
- QilChoice.cs
- IriParsingElement.cs
- ChangeTracker.cs
- columnmapkeybuilder.cs
- TextTreeExtractElementUndoUnit.cs
- PolyLineSegment.cs
- DataSourceViewSchemaConverter.cs
- DecoderFallback.cs
- LinearGradientBrush.cs
- MdiWindowListStrip.cs
- ClockController.cs
- WebPartMenu.cs
- GridItem.cs
- DmlSqlGenerator.cs
- GridProviderWrapper.cs
- DefaultHttpHandler.cs
- Oci.cs
- ThrowHelper.cs
- DrawingContextDrawingContextWalker.cs
- SymmetricAlgorithm.cs
- SQLStringStorage.cs
- BitmapMetadata.cs
- listitem.cs
- InvalidTimeZoneException.cs
- Menu.cs
- HttpListener.cs
- Group.cs
- CommandManager.cs
- ToolStripItemCollection.cs
- FormsAuthenticationTicket.cs
- TextOptions.cs
- XsdBuilder.cs
- WindowsFormsSectionHandler.cs
- ToolboxItemCollection.cs
- XamlInt32CollectionSerializer.cs
- WorkflowDebuggerSteppingAttribute.cs
- Input.cs
- AtlasWeb.Designer.cs
- MemberDomainMap.cs
- RectIndependentAnimationStorage.cs
- Utils.cs
- AtlasWeb.Designer.cs
- ServiceHttpModule.cs
- selecteditemcollection.cs
- String.cs
- Opcode.cs
- CellConstant.cs
- LayoutDump.cs
- ResourcePart.cs
- HtmlTableCellCollection.cs
- SafeNativeMethods.cs
- Control.cs
- TypeInformation.cs
- Int32RectValueSerializer.cs
- UIElementAutomationPeer.cs