comcontractssection.cs 976 B

123456789101112131415161718192021222324252627
  1. //------------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------------------------
  4. namespace System.ServiceModel.Configuration
  5. {
  6. using System.Configuration;
  7. using System.Globalization;
  8. using System.ServiceModel;
  9. public sealed partial class ComContractsSection : ConfigurationSection
  10. {
  11. [ConfigurationProperty(ConfigurationStrings.DefaultCollectionName, Options = ConfigurationPropertyOptions.IsDefaultCollection)]
  12. public ComContractElementCollection ComContracts
  13. {
  14. get { return (ComContractElementCollection)base[ConfigurationStrings.DefaultCollectionName]; }
  15. }
  16. internal static ComContractsSection GetSection()
  17. {
  18. return (ComContractsSection)ConfigurationHelpers.GetSection(ConfigurationStrings.ComContractsSectionPath);
  19. }
  20. }
  21. }