Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / TransportConfigurationTypeElement.cs / 1 / TransportConfigurationTypeElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.Configuration; public sealed partial class TransportConfigurationTypeElement : ConfigurationElement { public TransportConfigurationTypeElement() { } public TransportConfigurationTypeElement(string name) : this() { if (String.IsNullOrEmpty(name)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name"); } this.Name = name; } public TransportConfigurationTypeElement(string name, string transportConfigurationTypeName) : this(name) { if (String.IsNullOrEmpty(transportConfigurationTypeName)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("transportConfigurationTypeName"); } this.TransportConfigurationType = transportConfigurationTypeName; } [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.TransportConfigurationType, Options = ConfigurationPropertyOptions.IsRequired)] [StringValidator(MinLength = 1)] public string TransportConfigurationType { get { return (string)base[ConfigurationStrings.TransportConfigurationType]; } set { if(String.IsNullOrEmpty(value)) { value = String.Empty; } base[ConfigurationStrings.TransportConfigurationType] = 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
- ToolStripSeparatorRenderEventArgs.cs
- DataBindingValueUIHandler.cs
- RtfToXamlLexer.cs
- SoapConverter.cs
- UserNameSecurityToken.cs
- DataSourceSelectArguments.cs
- IssuedTokensHeader.cs
- TreeViewImageIndexConverter.cs
- DoWorkEventArgs.cs
- OpenTypeLayoutCache.cs
- DataGridViewLayoutData.cs
- MetadataFile.cs
- BamlResourceContent.cs
- WebServiceTypeData.cs
- RegexWorker.cs
- WebBrowserPermission.cs
- ObfuscateAssemblyAttribute.cs
- WinFormsSecurity.cs
- HostedImpersonationContext.cs
- EntityTypeBase.cs
- _NtlmClient.cs
- UrlAuthFailureHandler.cs
- GlobalAllocSafeHandle.cs
- Style.cs
- ProcessInfo.cs
- BitmapEffectGeneralTransform.cs
- PenLineCapValidation.cs
- Mutex.cs
- TypeGeneratedEventArgs.cs
- ThrowOnMultipleAssignment.cs
- CanonicalizationDriver.cs
- _NegoState.cs
- Attributes.cs
- DbProviderFactory.cs
- ToolStripPanelCell.cs
- MarkupObject.cs
- CodeCommentStatementCollection.cs
- Funcletizer.cs
- _OverlappedAsyncResult.cs
- Assert.cs
- MessageSecurityException.cs
- ResourceIDHelper.cs
- RuleInfoComparer.cs
- EventLogReader.cs
- CopyCodeAction.cs
- OdbcReferenceCollection.cs
- DataGridTableCollection.cs
- ArgumentOutOfRangeException.cs
- SlipBehavior.cs
- InstallerTypeAttribute.cs
- ListView.cs
- FixedFindEngine.cs
- AssemblySettingAttributes.cs
- CompensationToken.cs
- StylusPointPropertyInfoDefaults.cs
- InputEventArgs.cs
- RowsCopiedEventArgs.cs
- SetStoryboardSpeedRatio.cs
- DataViewManagerListItemTypeDescriptor.cs
- Operator.cs
- HtmlEmptyTagControlBuilder.cs
- IQueryable.cs
- TextElement.cs
- ImageSource.cs
- TaskFileService.cs
- Floater.cs
- UriTemplateTableMatchCandidate.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ByteStream.cs
- BindingEntityInfo.cs
- NestedContainer.cs
- SpellerError.cs
- COM2ComponentEditor.cs
- MembershipUser.cs
- UnhandledExceptionEventArgs.cs
- regiisutil.cs
- SafeCryptHandles.cs
- HtmlImage.cs
- XPathException.cs
- MsdtcClusterUtils.cs
- ToolStripItemRenderEventArgs.cs
- ArrangedElement.cs
- ClosableStream.cs
- ModelTreeEnumerator.cs
- InternalDispatchObject.cs
- TypedTableBase.cs
- BindingBase.cs
- ImageIndexConverter.cs
- UrlEncodedParameterWriter.cs
- DLinqColumnProvider.cs
- NotFiniteNumberException.cs
- HeaderElement.cs
- WindowsListViewGroupHelper.cs
- SelectionListDesigner.cs
- DecimalAnimationUsingKeyFrames.cs
- Thread.cs
- CodeTypeParameterCollection.cs
- ConfigsHelper.cs
- SqlCacheDependency.cs
- ToolboxItemCollection.cs