public static RemindersState <T> Get(ICorePropertyBag propertyBag, PropertyDefinition propertyDefinition) { Util.ThrowOnNullArgument(propertyBag, "propertyBag"); Util.ThrowOnNullArgument(propertyDefinition, "propertyDefinition"); ExTraceGlobals.RemindersTracer.TraceDebug <PropertyDefinition>(0L, "RemindersState.Get - from property bag propertyDefinition={0}", propertyDefinition); return(RemindersState <T> .GetFromStream(new RemindersState <T> .OpenPropertyStreamDelegate(propertyBag.OpenPropertyStream), propertyDefinition)); }
public static RemindersState <T> Get(IItem item, PropertyDefinition propertyDefinition) { Util.ThrowOnNullArgument(item, "item"); Util.ThrowOnNullArgument(propertyDefinition, "propertyDefinition"); ExTraceGlobals.RemindersTracer.TraceDebug <StoreObjectId, PropertyDefinition>(0L, "RemindersState.Get - item={0}, propertyDefinition={1}", item.StoreObjectId, propertyDefinition); return(RemindersState <T> .GetFromStream(new RemindersState <T> .OpenPropertyStreamDelegate(item.OpenPropertyStream), propertyDefinition)); }