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
- XamlSerializerUtil.cs
- HttpVersion.cs
- AdornedElementPlaceholder.cs
- DataSysAttribute.cs
- HttpListener.cs
- BasicExpandProvider.cs
- CqlWriter.cs
- WaitHandleCannotBeOpenedException.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CallbackValidatorAttribute.cs
- BitmapEffectState.cs
- ClientRequest.cs
- SQLByte.cs
- LinqDataSourceStatusEventArgs.cs
- OracleTimeSpan.cs
- WasEndpointConfigContainer.cs
- SystemPens.cs
- ProviderBase.cs
- SourceLineInfo.cs
- ContextMenu.cs
- FileNameEditor.cs
- XmlCharCheckingWriter.cs
- PartialTrustVisibleAssemblyCollection.cs
- ProbeDuplexCD1AsyncResult.cs
- baseaxisquery.cs
- CardSpaceException.cs
- AstNode.cs
- AccessDataSource.cs
- SystemDiagnosticsSection.cs
- TypeInitializationException.cs
- Attribute.cs
- COM2Properties.cs
- PathSegmentCollection.cs
- Policy.cs
- NativeBuffer.cs
- Annotation.cs
- DataGridViewCellFormattingEventArgs.cs
- TextParagraphProperties.cs
- NetPipeSection.cs
- RegexCharClass.cs
- TextBox.cs
- QilGenerator.cs
- MatrixStack.cs
- Translator.cs
- TextEditor.cs
- ToolStripItemImageRenderEventArgs.cs
- RSAOAEPKeyExchangeFormatter.cs
- GACIdentityPermission.cs
- ByteStorage.cs
- WebFaultClientMessageInspector.cs
- UInt16Storage.cs
- MemberNameValidator.cs
- Panel.cs
- GridViewCommandEventArgs.cs
- CalendarDay.cs
- Enlistment.cs
- XsltArgumentList.cs
- EntityContainerRelationshipSet.cs
- CodeComment.cs
- AutomationFocusChangedEventArgs.cs
- NamedPipeProcessProtocolHandler.cs
- DiscreteKeyFrames.cs
- DataListItemCollection.cs
- DatagridviewDisplayedBandsData.cs
- IItemProperties.cs
- CreationContext.cs
- Crc32.cs
- AssemblyFilter.cs
- RegexBoyerMoore.cs
- BindUriHelper.cs
- Timer.cs
- ActivityTypeDesigner.xaml.cs
- EncoderBestFitFallback.cs
- XamlPoint3DCollectionSerializer.cs
- SmtpAuthenticationManager.cs
- BaseResourcesBuildProvider.cs
- OracleException.cs
- TypeConverters.cs
- DataGridViewRow.cs
- DrawingContextDrawingContextWalker.cs
- ClientTargetCollection.cs
- ChangeNode.cs
- Assert.cs
- CatalogZone.cs
- Rect3D.cs
- MenuItemStyle.cs
- VoiceChangeEventArgs.cs
- WorkflowInstanceTerminatedRecord.cs
- RelationshipConverter.cs
- XamlSerializer.cs
- Int32CollectionConverter.cs
- DigitShape.cs
- FilteredDataSetHelper.cs
- LogicalExpr.cs
- EntitySetDataBindingList.cs
- FragmentQuery.cs
- DataConnectionHelper.cs
- MatrixIndependentAnimationStorage.cs
- VoiceObjectToken.cs
- SchemaObjectWriter.cs