private static byte[] CreateInstanceKey(string instanceKeyString) { if (instanceKeyString == null) { throw new ArgumentNullException("instanceKeyString"); } byte[] result = null; try { result = Convert.FromBase64String(instanceKeyString); } catch (ArgumentException innerException) { OwaStoreObjectId.ThrowInvalidIdFormatException(instanceKeyString, null, innerException); } catch (FormatException innerException2) { OwaStoreObjectId.ThrowInvalidIdFormatException(instanceKeyString, null, innerException2); } catch (CorruptDataException innerException3) { OwaStoreObjectId.ThrowInvalidIdFormatException(instanceKeyString, null, innerException3); } return(result); }
private static StoreObjectId CreateStoreObjectId(string storeObjectIdString) { if (storeObjectIdString == null) { throw new ArgumentNullException("storeObjectIdString"); } StoreObjectId result = null; try { result = StoreObjectId.Deserialize(storeObjectIdString); } catch (ArgumentException innerException) { OwaStoreObjectId.ThrowInvalidIdFormatException(storeObjectIdString, null, innerException); } catch (FormatException innerException2) { OwaStoreObjectId.ThrowInvalidIdFormatException(storeObjectIdString, null, innerException2); } catch (CorruptDataException innerException3) { OwaStoreObjectId.ThrowInvalidIdFormatException(storeObjectIdString, null, innerException3); } return(result); }