ServicePrincipalNameElement.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //------------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------------------------
  4. namespace System.ServiceModel.Configuration
  5. {
  6. using System;
  7. using System.ServiceModel;
  8. using System.Configuration;
  9. using System.IdentityModel.Claims;
  10. using System.IdentityModel.Policy;
  11. using System.Security.Cryptography;
  12. using System.Xml;
  13. public sealed partial class ServicePrincipalNameElement : ConfigurationElement
  14. {
  15. public ServicePrincipalNameElement()
  16. {
  17. }
  18. [ConfigurationProperty(ConfigurationStrings.Value, DefaultValue = "")]
  19. [StringValidator(MinLength = 0)]
  20. public String Value
  21. {
  22. get { return (string)base[ConfigurationStrings.Value]; }
  23. set
  24. {
  25. if (String.IsNullOrEmpty(value))
  26. {
  27. value = String.Empty;
  28. }
  29. base[ConfigurationStrings.Value] = value;
  30. }
  31. }
  32. }
  33. }