Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ServiceModelSectionGroup.cs / 1 / ServiceModelSectionGroup.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; using System.ServiceModel; public sealed class ServiceModelSectionGroup : ConfigurationSectionGroup { public ServiceModelSectionGroup() {} public BehaviorsSection Behaviors { get {return (BehaviorsSection) this.Sections[ConfigurationStrings.BehaviorsSectionName]; } } public BindingsSection Bindings { get {return (BindingsSection) this.Sections[ConfigurationStrings.BindingsSectionGroupName]; } } public ClientSection Client { get {return (ClientSection) this.Sections[ConfigurationStrings.ClientSectionName]; } } public ComContractsSection ComContracts { get {return (ComContractsSection) this.Sections[ConfigurationStrings.ComContractsSectionName]; } } public CommonBehaviorsSection CommonBehaviors { get {return (CommonBehaviorsSection) this.Sections[ConfigurationStrings.CommonBehaviorsSectionName]; } } public DiagnosticSection Diagnostic { get {return (DiagnosticSection) this.Sections[ConfigurationStrings.DiagnosticSectionName]; } } public ServiceHostingEnvironmentSection ServiceHostingEnvironment { get {return (ServiceHostingEnvironmentSection) this.Sections[ConfigurationStrings.ServiceHostingEnvironmentSectionName]; } } public ExtensionsSection Extensions { get { return (ExtensionsSection)this.Sections[ConfigurationStrings.Extensions]; } } public ServicesSection Services { get {return (ServicesSection) this.Sections[ConfigurationStrings.ServicesSectionName]; } } public static ServiceModelSectionGroup GetSectionGroup(Configuration config) { if (config == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("config"); } #pragma warning suppress 56506 //[....]; config.SectionGroups can never be null (underlying configuration system guarantees) return (ServiceModelSectionGroup) config.SectionGroups[ConfigurationStrings.SectionGroupName]; } } } // 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
- COM2TypeInfoProcessor.cs
- SelfIssuedAuthProofToken.cs
- CanonicalXml.cs
- EmitterCache.cs
- XmlCharCheckingWriter.cs
- TraceLog.cs
- SqlClientFactory.cs
- UriTemplateEquivalenceComparer.cs
- MonikerSyntaxException.cs
- Transactions.cs
- TabletCollection.cs
- SecurityHelper.cs
- ClientConfigPaths.cs
- Exception.cs
- PropertyItemInternal.cs
- DetailsView.cs
- EventHandlers.cs
- AsyncCompletedEventArgs.cs
- AudienceUriMode.cs
- DataGridViewSelectedColumnCollection.cs
- BinaryReader.cs
- HtmlAnchor.cs
- RepeaterItem.cs
- JsonSerializer.cs
- AccessText.cs
- PanelStyle.cs
- SvcMapFile.cs
- QueryCacheManager.cs
- webclient.cs
- ImageField.cs
- XhtmlBasicValidationSummaryAdapter.cs
- SessionIDManager.cs
- MethodBody.cs
- GridViewColumn.cs
- SafePEFileHandle.cs
- SafeNativeMethods.cs
- ReferentialConstraint.cs
- UnionExpr.cs
- AdapterDictionary.cs
- SubqueryRules.cs
- GridItem.cs
- ProcessHostMapPath.cs
- EntityFunctions.cs
- DataExchangeServiceBinder.cs
- AsymmetricSignatureFormatter.cs
- PlatformCulture.cs
- DiscoveryVersion.cs
- ReadOnlyNameValueCollection.cs
- CellParaClient.cs
- PeerNameRecordCollection.cs
- Misc.cs
- MergablePropertyAttribute.cs
- MenuItemCollection.cs
- Metadata.cs
- InOutArgumentConverter.cs
- ForeignKeyFactory.cs
- RegisteredScript.cs
- XmlNodeChangedEventManager.cs
- ModifierKeysConverter.cs
- Function.cs
- ArrayTypeMismatchException.cs
- StylusDownEventArgs.cs
- InheritanceService.cs
- ResourceDictionary.cs
- ManipulationStartedEventArgs.cs
- SafeNativeMethods.cs
- LinqExpressionNormalizer.cs
- CompilationAssemblyInstallComponent.cs
- NameValueSectionHandler.cs
- OutputCacheSettings.cs
- PenThread.cs
- DatePicker.cs
- CodeSnippetCompileUnit.cs
- propertytag.cs
- DataGridDetailsPresenterAutomationPeer.cs
- OleDbConnection.cs
- DivideByZeroException.cs
- Privilege.cs
- MatrixCamera.cs
- MembershipUser.cs
- ExpressionsCollectionConverter.cs
- VersionedStream.cs
- ScopelessEnumAttribute.cs
- DefaultBindingPropertyAttribute.cs
- TopClause.cs
- StringExpressionSet.cs
- VectorCollection.cs
- BitmapScalingModeValidation.cs
- FormViewRow.cs
- UnsettableComboBox.cs
- HtmlTitle.cs
- InvalidWMPVersionException.cs
- MetadataCache.cs
- AssociationEndMember.cs
- FormsAuthenticationCredentials.cs
- AncestorChangedEventArgs.cs
- WindowsListViewGroupHelper.cs
- InputLangChangeRequestEvent.cs
- SourceInterpreter.cs
- XmlIlVisitor.cs