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
- TreeNodeMouseHoverEvent.cs
- WindowsGraphicsWrapper.cs
- BoundField.cs
- CodeDomDecompiler.cs
- SimpleBitVector32.cs
- ProxyGenerationError.cs
- UnmanagedHandle.cs
- LineUtil.cs
- WebPartChrome.cs
- WmlCommandAdapter.cs
- CodeNamespace.cs
- StaticResourceExtension.cs
- StaticExtensionConverter.cs
- COM2ComponentEditor.cs
- SqlClientMetaDataCollectionNames.cs
- RemotingConfigParser.cs
- TypeExtensionConverter.cs
- RpcCryptoContext.cs
- ChangeTracker.cs
- XmlTextReader.cs
- RepeaterItemCollection.cs
- WsdlEndpointConversionContext.cs
- TreeViewEvent.cs
- OverflowException.cs
- SignedPkcs7.cs
- DesignerView.Commands.cs
- MtomMessageEncodingBindingElement.cs
- MeshGeometry3D.cs
- figurelengthconverter.cs
- VisualSerializer.cs
- LocalFileSettingsProvider.cs
- MsmqChannelFactory.cs
- CacheEntry.cs
- MaskedTextBoxTextEditorDropDown.cs
- DiffuseMaterial.cs
- FilePrompt.cs
- SR.Designer.cs
- CodePageEncoding.cs
- Rfc4050KeyFormatter.cs
- MessageHeaderDescription.cs
- GridViewHeaderRowPresenter.cs
- OletxCommittableTransaction.cs
- ScriptManager.cs
- Assert.cs
- LinkedList.cs
- HttpConfigurationContext.cs
- ClientConfigurationHost.cs
- XmlPropertyBag.cs
- ITreeGenerator.cs
- IndentTextWriter.cs
- StdValidatorsAndConverters.cs
- Sql8ConformanceChecker.cs
- HighlightVisual.cs
- ClrProviderManifest.cs
- PerformanceCounterNameAttribute.cs
- DesignerObjectListAdapter.cs
- TiffBitmapEncoder.cs
- MarkupCompilePass2.cs
- MatrixAnimationUsingPath.cs
- SmtpFailedRecipientException.cs
- EntityClientCacheKey.cs
- DesignerSerializerAttribute.cs
- TextRangeAdaptor.cs
- SqlUserDefinedAggregateAttribute.cs
- ApplicationCommands.cs
- Stackframe.cs
- JoinSymbol.cs
- DeclarationUpdate.cs
- FlowDocumentPaginator.cs
- HtmlAnchor.cs
- safemediahandle.cs
- Geometry.cs
- ControlBuilderAttribute.cs
- StyleModeStack.cs
- EnterpriseServicesHelper.cs
- ConsumerConnectionPoint.cs
- XamlPathDataSerializer.cs
- WpfKnownMember.cs
- MapPathBasedVirtualPathProvider.cs
- SqlDependency.cs
- CmsInterop.cs
- TabControl.cs
- TableMethodGenerator.cs
- FlowDocumentReaderAutomationPeer.cs
- NotFiniteNumberException.cs
- DivideByZeroException.cs
- PointConverter.cs
- HitTestWithPointDrawingContextWalker.cs
- UnauthorizedWebPart.cs
- FrameDimension.cs
- PropertyChangedEventArgs.cs
- ProxyWebPart.cs
- PointLight.cs
- BindingExpression.cs
- CapabilitiesRule.cs
- FixedDocumentSequencePaginator.cs
- SqlServices.cs
- ArraySortHelper.cs
- Thread.cs
- MemoryMappedViewStream.cs