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
- ScriptHandlerFactory.cs
- IgnoreFlushAndCloseStream.cs
- TransformerInfo.cs
- SrgsDocument.cs
- ZipPackage.cs
- TableRow.cs
- StringUtil.cs
- ActivityScheduledRecord.cs
- ModulesEntry.cs
- TransactionalPackage.cs
- CachedTypeface.cs
- ServiceDeploymentInfo.cs
- ViewStateAttachedPropertyFeature.cs
- SystemIcons.cs
- LinqTreeNodeEvaluator.cs
- Part.cs
- ScriptBehaviorDescriptor.cs
- Highlights.cs
- XmlSchemaObjectTable.cs
- loginstatus.cs
- PropertyKey.cs
- nulltextnavigator.cs
- DetailsViewDeletedEventArgs.cs
- EventLog.cs
- DefaultAssemblyResolver.cs
- SystemInformation.cs
- FloatUtil.cs
- RegexReplacement.cs
- ChangePasswordDesigner.cs
- EventHandlerList.cs
- FilterFactory.cs
- ComPlusTypeLoader.cs
- HashSetDebugView.cs
- EntityClientCacheKey.cs
- UnSafeCharBuffer.cs
- TraceLog.cs
- DataObjectPastingEventArgs.cs
- SourceInterpreter.cs
- PipeStream.cs
- MobileUserControlDesigner.cs
- EntityDesignerUtils.cs
- EventPrivateKey.cs
- WebBrowsableAttribute.cs
- BamlLocalizableResource.cs
- PersonalizablePropertyEntry.cs
- MultiPageTextView.cs
- FormsAuthenticationConfiguration.cs
- ToolBar.cs
- Rect3DValueSerializer.cs
- DBSchemaRow.cs
- SemanticBasicElement.cs
- AudioStateChangedEventArgs.cs
- assertwrapper.cs
- precedingsibling.cs
- SourceLocation.cs
- MessagePartSpecification.cs
- Itemizer.cs
- TextBoxBase.cs
- Inflater.cs
- PolyQuadraticBezierSegment.cs
- ThemeDirectoryCompiler.cs
- TraceHandler.cs
- _NTAuthentication.cs
- SafeNativeMethods.cs
- Journaling.cs
- FunctionParameter.cs
- FileSystemWatcher.cs
- BitmapEffectState.cs
- SystemPens.cs
- StringExpressionSet.cs
- Label.cs
- DataGridViewBindingCompleteEventArgs.cs
- _HelperAsyncResults.cs
- LinkButton.cs
- AuthenticationModuleElementCollection.cs
- DetailsViewCommandEventArgs.cs
- CutCopyPasteHelper.cs
- WaveHeader.cs
- DbgUtil.cs
- SharedUtils.cs
- ControlBuilderAttribute.cs
- PositiveTimeSpanValidatorAttribute.cs
- Stopwatch.cs
- ResourceDisplayNameAttribute.cs
- CodeNamespaceCollection.cs
- OperationResponse.cs
- SecurityPermission.cs
- UserNameSecurityTokenProvider.cs
- XmlFormatExtensionPointAttribute.cs
- Ticks.cs
- TdsParserStaticMethods.cs
- ClusterUtils.cs
- Message.cs
- TableItemStyle.cs
- ModelVisual3D.cs
- TypeConverterHelper.cs
- FontFamilyConverter.cs
- _RequestCacheProtocol.cs
- XNodeValidator.cs
- AsyncOperationContext.cs