2 // Microsoft.Web.Services.Addressing.To
4 // Author: Todd Berman <tberman@gentoo.org>
6 // (C) 2003 Todd Berman
10 using Microsoft
.Web
.Services
.Xml
;
12 namespace Microsoft
.Web
.Services
.Addressing
15 public class To
: AttributedUri
, IXmlElement
18 public To (AttributedUri uri
) : base (uri
)
22 public To (Uri uri
) : base (uri
)
26 public To (XmlElement element
) : base ()
31 public XmlElement
GetXml (XmlDocument document
)
33 if(document
== null) {
34 throw new ArgumentNullException ("document");
37 XmlElement element
= document
.CreateElement ("wsa",
39 "http://schemas.xmlsoap.org/2003/03/addressing");
41 GetXmlUri (document
, element
);
45 public void LoadXml (XmlElement element
)
48 throw new ArgumentNullException ("element");
51 if(element
.LocalName
!= "To" || element
.NamespaceURI
!= "http://schemas.xmlsoap.org/2003/03/addressing") {
52 throw new ArgumentException ("Invalid Element Supplied");
58 public static implicit operator To (Uri uri
)
63 public static implicit operator Uri (To obj
)