Exemplo n.º 1
0
        private static object GetDisplayTypeEx(IReadOnlyPropertyBag propertyBag)
        {
            RecipientDisplayType?recipientDisplayType  = (RecipientDisplayType?)StoreToDirectorySchemaConverter.TryGetValueOrDefault(propertyBag, ADRecipientSchema.RecipientDisplayType);
            RecipientDisplayType?recipientDisplayType2 = (recipientDisplayType != null) ? new RecipientDisplayType?(recipientDisplayType.GetValueOrDefault()) : StoreToDirectorySchemaConverter.ToRecipientDisplayType((RecipientType)StoreToDirectorySchemaConverter.TryGetValueOrDefault(propertyBag, ADRecipientSchema.RecipientType));

            if (recipientDisplayType2 == null)
            {
                return(PropertyErrorCode.NotFound);
            }
            return((int)recipientDisplayType2.Value);
        }
Exemplo n.º 2
0
 private static object GetAlias(IReadOnlyPropertyBag propertyBag)
 {
     return(StoreToDirectorySchemaConverter.DefaultToNotFound(propertyBag, ADRecipientSchema.Alias));
 }
Exemplo n.º 3
0
 private static object GetLegacyExchangeDN(IReadOnlyPropertyBag propertyBag)
 {
     return(StoreToDirectorySchemaConverter.DefaultToNotFound(propertyBag, ADRecipientSchema.LegacyExchangeDN));
 }