MessagePropertyAttribute.cs 923 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //-----------------------------------------------------------------------------
  4. namespace System.ServiceModel
  5. {
  6. [AttributeUsage(ServiceModelAttributeTargets.MessageMember, Inherited = false)]
  7. public sealed class MessagePropertyAttribute : Attribute
  8. {
  9. string name;
  10. bool isNameSetExplicit;
  11. public MessagePropertyAttribute()
  12. {
  13. }
  14. public string Name
  15. {
  16. get
  17. {
  18. return this.name;
  19. }
  20. set
  21. {
  22. isNameSetExplicit = true;
  23. this.name = value;
  24. }
  25. }
  26. internal bool IsNameSetExplicit
  27. {
  28. get
  29. {
  30. return isNameSetExplicit;
  31. }
  32. }
  33. }
  34. }