MessagePartDescription Class
Represents a description of a SOAP message part.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
System.ServiceModel.Description::MessagePartDescription
System.ServiceModel.Description::MessageHeaderDescription
System.ServiceModel.Description::MessagePropertyDescription
| Name | Description | |
|---|---|---|
![]() | MessagePartDescription(String^, String^) | 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 the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | 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.
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


