Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The namespaces are there because they uniquely identify the properties within the object;</p> <blockquote> <p>Microsoft CDO for Windows 2000 enlists the use of Uniform Resource Identifiers (URIs) to qualify or scope field names and their semantic definitions. Each field accessed through a Fields collection is comprised of a namespace prefix and a local name. The namespace prefix is a URI reference used to qualify or scope the semantic definition of the property. For example, the subject field for a message has two representations: one with non US-ASCII characters encoded using the mechanism defined in RFC 1522, and another where these characters are decoded into native, UNICODE characters. By using namespaces, one can identify which semantic definition is intended when the "subject" for the message is requested. In this case, the subject field defined within the urn:schemas:mailheader: namespace is defined to be the US-ASCII string value of the field, and the subject field defined within the urn:schemas:httpmail: namespace is the native, UNICODE version.</p> </blockquote> <p>From the <a href="http://msdn.microsoft.com/en-us/library/z2kcy19k%28v=vs.80%29.aspx" rel="nofollow">MSDN article Fields</a>.</p> <p>It's almost exactly the same principal as <a href="http://www.w3.org/TR/REC-xml-names/" rel="nofollow">XML Namespaces</a>, or even namespaces in a language like <a href="http://msdn.microsoft.com/en-us/library/z2kcy19k%28v=vs.80%29.aspx" rel="nofollow">C#</a></p> <p>They aren't actually connecting to Microsoft at all; indeed, try typing the URL into a browser, and you will get a 404 error. </p> <p>It's just the rather inelegant syntax for setting the properties that you need to set in order to connect to <em>your</em> exchange server. </p> <p>For example, to set the server your code should connect to for sending mail, you set the property <code>smtpserver</code>. Internally, to reach this <a href="http://msdn.microsoft.com/en-us/library/ms527294%28v=exchg.10%29" rel="nofollow">property</a>, the assembly will map this onto the URI <code>http://schemas.microsoft.com/cdo/configuration/smtpserver</code></p> <p>A C# component for sending mail might ask you to set <code>SmtpMail.Server</code>. However, remember, to create SmtpMail, you would have had to look in the namespace <code>System.Web.Mail</code> - so the fully qualified path to the property is <code>System.Web.Mail.SmtpMail.Server</code> Here, however, the language is far more elegant - the using statement allows us to be in the context for creating the object, which reduces the amount of typing. Remember, if you really wanted to, in C#, you could do:</p> <pre><code>System.Web.Mail.SmtpServer mailServer = new System.Web.Mail.SmtpServer(); </code></pre> <p>Which is more verbose.</p> <p>In my opinion, the URI syntax is ungainly, however, at the time, it was a proposed solution to the problem of uniquely distinguishing things with the same name that could mean something different. Some people used it. A lot of people didn't. Remember, this code is over a decade old!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload