title: Are there publics Enums for ExtendedPropertyDefinition IDs?
body: <p>Much like in the example from <a href="https://stackoverflow.com/questions/2045233/where-are-exchange-web-services-extendedpropertydefinition-ids-defined">this question</a> I see many code snippets on the web using magic numbers when making ExtendedPropertyDefinition. Example:</p>
  
  <pre class="lang-none prettyprint-override"><code>Dim PR_DELETED_ON As New ExtendedPropertyDefinition(26255, MapiPropertyType.SystemTime)
  Dim PR_SEARCH_KEY As New ExtendedPropertyDefinition(12299, MapiPropertyType.Binary)
  </code></pre>
  
  <p>I have <em>sort of</em> found a <a href="https://msdn.microsoft.com/en-us/library/office/cc815492%28v=office.14%29.aspx?f=255&amp;MSPPError=-2147217396" rel="nofollow noreferrer">reference location for these on MSDN</a>. I can look them up individually as supposed to one large table. Here is the one for <code>PR_DELETED_ON</code> like in the above example</p>
  
  <blockquote>
  <pre><code> +------------------------+---------------+
   | Associated properties: | PR_SEARCH_KEY |
   +------------------------+---------------+
   | Identifier:            | 0x300B        |
   +------------------------+---------------+
   | Data type:             | PT_BINARY     |
   +------------------------+---------------+
   | Area:                  | ID properties |
   +------------------------+---------------+
  </code></pre>
  </blockquote>
  
  <p>0x300b being 12299 in decimal</p>
  
  <p>I hate magic numbers so I was looking for an enum for this in the EWS API. I wrote this snippet to (hopefully) show me all the enums exposed.</p>
  
  <pre><code>$obj = [Reflection.Assembly]::LoadFile("C:\Program Files (x86)\EWSManagedAPI\Microsoft.Exchange.WebServices.dll")
  $obj.GetTypes() | Where-object{$_.isenum -and ($_.ispublic -or $_.isnestedpublic)} | ForEach-Object{
      $props = @{Name = $_.FullName}
      [enum]::GetValues($_) | ForEach-Object{
          $props.Integer = [int64]$_ 
          $props.Text = $_
          [pscustomobject]$props
      } 
  }
  </code></pre>
  
  <p>I didn't see anything in the output that matched what I was looking at above. Does anyone know if there is a preexisting enum for these properties? If not that is fine. I just assumed there would be something out there.</p>
  
  <p>Not the end of the world but I couldn't find them myself. Might explain why code snippets keep referencing to them.</p>