Пример #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);
        }
Пример #2
0
 private static object GetAlias(IReadOnlyPropertyBag propertyBag)
 {
     return(StoreToDirectorySchemaConverter.DefaultToNotFound(propertyBag, ADRecipientSchema.Alias));
 }
Пример #3
0
 private static object GetLegacyExchangeDN(IReadOnlyPropertyBag propertyBag)
 {
     return(StoreToDirectorySchemaConverter.DefaultToNotFound(propertyBag, ADRecipientSchema.LegacyExchangeDN));
 }