1 //-----------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //-----------------------------------------------------------------------------
4 
5 namespace System.ServiceModel.Configuration
6 {
7     using System;
8     using System.Collections.Generic;
9     using System.ComponentModel;
10     using System.Configuration;
11     using System.Globalization;
12     using System.Xml;
13 
14     public sealed partial class ComMethodElement : ConfigurationElement
15     {
ComMethodElement()16         public ComMethodElement()
17             : base()
18         {
19         }
20 
ComMethodElement(string method)21         public ComMethodElement(string method)
22             : this()
23         {
24             this.ExposedMethod = method;
25         }
26 
27         [ConfigurationProperty(ConfigurationStrings.ExposedMethod, Options = ConfigurationPropertyOptions.IsKey | ConfigurationPropertyOptions.IsRequired)]
28         [StringValidator(MinLength = 1)]
29         public string ExposedMethod
30         {
31             get { return (string)base[ConfigurationStrings.ExposedMethod]; }
32             set
33             {
34                 if (String.IsNullOrEmpty(value))
35                 {
36                     value = String.Empty;
37                 }
38 
39                 base[ConfigurationStrings.ExposedMethod] = value;
40             }
41         }
42 
43 
44 
45     }
46 
47 
48 }
49