MessagePropertyAttribute Class
.NET Framework 3.0
Represents data that is passed locally with a custom message type but not serialized into a SOAP message.
Namespace: System.ServiceModel
Assembly: System.ServiceModel (in system.servicemodel.dll)
Assembly: System.ServiceModel (in system.servicemodel.dll)
'Declaration <AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field, Inherited:=False)> _ Public NotInheritable Class MessagePropertyAttribute Inherits Attribute 'Usage Dim instance As MessagePropertyAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, Inherited=false) */ public final class MessagePropertyAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, Inherited=false) public final class MessagePropertyAttribute extends Attribute
Not applicable.
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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: