Interface IAttachmentForEmailInfoProvider
- Namespace
- CMS.EmailEngine
- Assembly
- CMS.EmailEngine.dll
Declares members for AttachmentForEmailInfo management.
[Obsolete("Use CMS.DataEngine.IInfoProvider<AttachmentForEmailInfo> instead. Use CMS.DataEngine.InfoProviderExtensions for additional methods for individual objects retrieval. To get an instance of the interface's implementation use dependency injection or access the instance directly via the CMS.DataEngine.Provider<AttachmentForEmailInfo>.Instance property.")]
[ObsoleteSince(28, 4)]
public interface IAttachmentForEmailInfoProvider : IInfoProvider<AttachmentForEmailInfo>
- Inherited Members
- Extension Methods
Methods
Add(int, int)
Creates AttachmentForEmailInfo binding.
[Obsolete("Create a new AttachmentForEmailInfo with specified EmailID and AttachmentID and use Set(AttachmentForEmailInfo) instead.")]
[ObsoleteSince(28, 4)]
void Add(int emailId, int emailAttachmentId)
Parameters
emailId
intEmail ID.
emailAttachmentId
intEmail attachment ID.
Get(int, int)
Gets an instance of the AttachmentForEmailInfo binding structure.
[Obsolete("Use Get() and parametrized ObjectQuery to get the AttachmentForEmailInfo with specified EmailID and AttachmentID.")]
[ObsoleteSince(28, 4)]
AttachmentForEmailInfo Get(int emailId, int emailAttachmentId)
Parameters
emailId
intEmail ID.
emailAttachmentId
intEmail attachment ID.
Returns
- AttachmentForEmailInfo
Returns an instance of AttachmentForEmailInfo corresponding to given identifiers or null.
GetAsync(int, int, CancellationToken?)
Asynchronously gets an instance of the AttachmentForEmailInfo binding structure.
[Obsolete("Use Get() and parametrized ObjectQuery to get the AttachmentForEmailInfo with specified EmailID and AttachmentID.")]
[ObsoleteSince(28, 4)]
Task<AttachmentForEmailInfo> GetAsync(int emailId, int emailAttachmentId, CancellationToken? cancellationToken = null)
Parameters
emailId
intEmail ID.
emailAttachmentId
intEmail attachment ID.
cancellationToken
CancellationToken?The cancellation instruction.
Returns
- Task<AttachmentForEmailInfo>
Returns a task returning either an instance of AttachmentForEmailInfo corresponding to given identifiers or null.
Remove(int, int)
Deletes AttachmentForEmailInfo binding.
[Obsolete("Get the AttachmentForEmailInfo with specified EmailID and AttachmentID using Get() and delete the binding using Delete(AttachmentForEmailInfo).")]
[ObsoleteSince(28, 4)]
void Remove(int emailId, int emailAttachmentId)
Parameters
emailId
intEmail ID.
emailAttachmentId
intEmail attachment ID.