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
- FixedSOMTableRow.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- HostedHttpRequestAsyncResult.cs
- VectorAnimationUsingKeyFrames.cs
- Span.cs
- AuthenticationModuleElement.cs
- ServiceOperationListItem.cs
- Size3D.cs
- LayoutDump.cs
- IteratorFilter.cs
- DeferredTextReference.cs
- SQLUtility.cs
- XmlAnyElementAttribute.cs
- FigureParaClient.cs
- AdRotator.cs
- WebServiceClientProxyGenerator.cs
- Encoding.cs
- IntSecurity.cs
- LazyTextWriterCreator.cs
- DetailsViewUpdateEventArgs.cs
- Console.cs
- DataGridItemEventArgs.cs
- ScrollEvent.cs
- TableRowCollection.cs
- XamlBrushSerializer.cs
- PriorityBindingExpression.cs
- _RequestCacheProtocol.cs
- CodeVariableReferenceExpression.cs
- DbConnectionStringBuilder.cs
- BitmapCodecInfo.cs
- WinEventHandler.cs
- XsltInput.cs
- _SpnDictionary.cs
- AppDomainProtocolHandler.cs
- BatchParser.cs
- DbMetaDataCollectionNames.cs
- KeyNotFoundException.cs
- SessionState.cs
- ArgIterator.cs
- securestring.cs
- BitmapEncoder.cs
- ExpressionDumper.cs
- TraceContext.cs
- DependencyPropertyDescriptor.cs
- counter.cs
- ReservationCollection.cs
- OdbcConnectionFactory.cs
- ButtonBaseAdapter.cs
- UnaryExpression.cs
- OptimalBreakSession.cs
- Int32EqualityComparer.cs
- BlockUIContainer.cs
- TemplatedWizardStep.cs
- DependencyPropertyConverter.cs
- BinaryKeyIdentifierClause.cs
- WebPartConnectionCollection.cs
- ITextView.cs
- SamlConstants.cs
- EdmError.cs
- PatternMatcher.cs
- DictationGrammar.cs
- coordinator.cs
- DynamicQueryableWrapper.cs
- TableHeaderCell.cs
- IndentedWriter.cs
- CompilerHelpers.cs
- DataGridViewComboBoxEditingControl.cs
- WebCategoryAttribute.cs
- keycontainerpermission.cs
- TypeContext.cs
- CodeAccessPermission.cs
- ThicknessAnimationUsingKeyFrames.cs
- TypeInitializationException.cs
- StubHelpers.cs
- XmlDataLoader.cs
- CompiledXpathExpr.cs
- AttributeEmitter.cs
- ListControl.cs
- CodeTypeParameterCollection.cs
- NodeLabelEditEvent.cs
- MouseButton.cs
- MatrixTransform3D.cs
- SqlDataSourceSelectingEventArgs.cs
- odbcmetadatacolumnnames.cs
- ExpressionNode.cs
- indexingfiltermarshaler.cs
- EncodingInfo.cs
- CodeRegionDirective.cs
- NameValuePermission.cs
- SimpleType.cs
- InkCanvasAutomationPeer.cs
- DrawingContextWalker.cs
- DoubleKeyFrameCollection.cs
- DiscriminatorMap.cs
- DescendantQuery.cs
- TypeDescriptor.cs
- CapabilitiesState.cs
- SrgsSemanticInterpretationTag.cs
- XmlUrlResolver.cs
- ElementUtil.cs