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
- DataGridViewColumn.cs
- CheckBoxFlatAdapter.cs
- ScriptingWebServicesSectionGroup.cs
- DragEvent.cs
- PermissionSetEnumerator.cs
- AutomationElement.cs
- ControlTemplate.cs
- StringArrayConverter.cs
- SafeProcessHandle.cs
- HttpRawResponse.cs
- PolicyAssertionCollection.cs
- DefaultPropertyAttribute.cs
- RtfToXamlReader.cs
- C14NUtil.cs
- MultiTargetingUtil.cs
- LicenseContext.cs
- CharUnicodeInfo.cs
- DataContractSerializerMessageContractImporter.cs
- CachingHintValidation.cs
- SettingsPropertyCollection.cs
- XamlReaderHelper.cs
- TargetControlTypeAttribute.cs
- Maps.cs
- OperatorExpressions.cs
- Mutex.cs
- PropertyMetadata.cs
- NamedElement.cs
- CultureInfo.cs
- SynchronizedInputPattern.cs
- UInt16.cs
- StringFormat.cs
- EventSinkHelperWriter.cs
- IArgumentProvider.cs
- COM2AboutBoxPropertyDescriptor.cs
- RuleSettings.cs
- _HeaderInfo.cs
- ActivityExecutorDelegateInfo.cs
- MimeTypeMapper.cs
- ProtocolsSection.cs
- PartBasedPackageProperties.cs
- PeerCollaborationPermission.cs
- ResourceDisplayNameAttribute.cs
- CacheOutputQuery.cs
- QueryContinueDragEvent.cs
- PerformanceCounterPermission.cs
- IdentityManager.cs
- DataGridDetailsPresenter.cs
- WrappingXamlSchemaContext.cs
- _Win32.cs
- TransactionProtocol.cs
- FaultHandlingFilter.cs
- DataColumn.cs
- SizeLimitedCache.cs
- FreezableCollection.cs
- ProvidersHelper.cs
- ServiceRoute.cs
- EntityDataSourceStatementEditor.cs
- PeerSecurityManager.cs
- MatrixStack.cs
- ButtonFieldBase.cs
- ToolStripItemImageRenderEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- SQLInt64Storage.cs
- DictionaryEntry.cs
- DbDeleteCommandTree.cs
- BigIntegerStorage.cs
- ListViewSortEventArgs.cs
- TypeInitializationException.cs
- ArrayConverter.cs
- RC2CryptoServiceProvider.cs
- GreaterThan.cs
- LinqDataSourceHelper.cs
- WebPartTransformer.cs
- AttributeConverter.cs
- ArglessEventHandlerProxy.cs
- FrameworkPropertyMetadata.cs
- PrinterSettings.cs
- AsyncOperation.cs
- ActivityMetadata.cs
- XmlMapping.cs
- IListConverters.cs
- DataControlImageButton.cs
- DataGridViewCellStyleChangedEventArgs.cs
- AnimationClock.cs
- VersionedStream.cs
- FormsAuthenticationTicket.cs
- SerializationTrace.cs
- TextParagraphProperties.cs
- SemanticBasicElement.cs
- CodeBinaryOperatorExpression.cs
- PriorityBinding.cs
- Completion.cs
- DataGridViewAccessibleObject.cs
- DataControlImageButton.cs
- WebHostScriptMappingsInstallComponent.cs
- FrugalMap.cs
- HtmlInputImage.cs
- Simplifier.cs
- CompilerErrorCollection.cs
- SynchronousSendBindingElement.cs