Files
mono/mcs/class/System.Web.Services/System.Web.Services.Description/MessagePart.cs
T
Lluis Sanchez bc88cf65e9 * Binding.cs: removed extra XmlIgnore attribute on ServiceDescription
* Import.cs: removed extra XmlIgnore attribute on ServiceDescription
	* Message.cs: removed extra XmlIgnore attribute on ServiceDescription
	* MessageBinding.cs: removed extra DefaultValue attribute from Name,
	removed extra XmlIgnoreAttribute from OperationBinding
	* MessagePart.cs: removed extra XmlIgnore attribute on Message
	* MimeContentBinding.cs: removed extra DefaultValue attribute on Part
	* Operation.cs: removed extra XmlIgnore attribute on PortType
	* OperationBinding.cs: removed extra XmlIgnore attribute on Binding
	* OperationMessage.cs: removed extra XmlIgnore attribute on Operation
	* Port.cs: removed extra XmlIgnore attribute on Service
	* PortType.cs: removed extra XmlIgnore on ServiceDescription
	* Service.cs: removed extra XmlIgnore on ServiceDescription
	* ServiceDescriptionFormatExtension.cs: removed extra XmlIgnore
	  attribute on Parent
	* SoapHeaderBinding.cs: added XmlElement attribute on Fault
	* HttpSimpleProtocolImporter.cs: removed unused variable
	* ServiceDescriptionImporter.cs: removed unused variable
	* SoapProtocolImporter.cs: removed unused variable

svn path=/trunk/mcs/; revision=28615
2004-06-01 08:49:25 +00:00

75 lines
1.3 KiB
C#

//
// System.Web.Services.Description.MessagePart.cs
//
// Author:
// Tim Coleman ([email protected])
//
// Copyright (C) Tim Coleman, 2002
//
using System.Xml;
using System.Xml.Serialization;
namespace System.Web.Services.Description {
public sealed class MessagePart : DocumentableItem {
#region Fields
XmlQualifiedName element;
Message message;
string name;
XmlQualifiedName type;
#endregion // Fields
#region Constructors
public MessagePart ()
{
element = XmlQualifiedName.Empty;
message = null;
name = String.Empty;
type = XmlQualifiedName.Empty;
}
#endregion // Constructors
#region Properties
[XmlAttribute ("element")]
public XmlQualifiedName Element {
get { return element; }
set { element = value; }
}
// [XmlIgnore]
public Message Message {
get { return message; }
}
[XmlAttribute ("name", DataType = "NMTOKEN")]
public string Name {
get { return name; }
set { name = value; }
}
[XmlAttribute ("type")]
public XmlQualifiedName Type {
get { return type; }
set { type = value; }
}
#endregion // Properties
#region Methods
internal void SetParent (Message message)
{
this.message = message;
}
#endregion // Methods
}
}