This documentation is archived and is not being maintained.
MessagePropertyAttribute Class
Visual Studio 2008
Represents data that is passed locally with a custom message type but not serialized into a SOAP message.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The following code example demonstrates the use of the MessagePropertyAttribute attribute.
[MessageContractAttribute] public class CustomMessage { private Person internalPerson; [MessageProperty] private int a = 23; [MessageBodyMember(Name="Person")] public PersonType Data { get { return internalPerson; } set { this.internalPerson = (Person)value; } } }
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: