MessagePartDescription Class
Represents a description of a SOAP message part.
System.ServiceModel.Description::MessagePartDescription
System.ServiceModel.Description::MessageHeaderDescription
System.ServiceModel.Description::MessagePropertyDescription
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The MessagePartDescription type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | MessagePartDescription | Initializes a new instance of the MessagePartDescription class. |
| Name | Description | |
|---|---|---|
![]() | HasProtectionLevel | Gets a value that indicates whether the message part has a value for the ProtectionLevel property. |
![]() ![]() | Index | Gets or sets the index of the message part. |
![]() ![]() | MemberInfo | Gets or sets the member information for the message part. |
![]() | Multiple | Gets or sets a value that controls whether the message part can occur more than once in the message. |
![]() ![]() | Name | Gets or sets the name of the message part. |
![]() ![]() | Namespace | Gets or sets the namespace of the message part. |
![]() | ProtectionLevel | Gets or sets the ProtectionLevel of the message part. |
![]() ![]() | Type | Gets or sets the type of the message part. |
| Name | Description | |
|---|---|---|
![]() ![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The MessagePartDescription class is the parent class of MessageHeaderDescription and MessagePropertyDescription and contains the basic functionality of both classes.
The following example uses the MessagePartDescription returned by the Parts property of the MessageBodyDescription class. The code iterates through the collection of endpoints and prints each endpoint name, as well as the name of each operation in the endpoint.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

