Click or drag to resize
AttachmentInfoProviderGetAttachmentInfo Method (Int32, Boolean)

Note: This API is now obsolete.

Returns the AttachmentInfo structure for the specified attachment.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IAttachmentInfoProvider.Get(int) or AttachmentInfoProviderExtensions.GetWithoutBinary(IAttachmentInfoProvider, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - AttachmentInfo.Provider.")]
public static AttachmentInfo GetAttachmentInfo(
	int attachmentId,
	bool getBinary
)

Parameters

attachmentId
Type: SystemInt32
Attachment id
getBinary
Type: SystemBoolean
If false, no binary data is retrieved from the database

Return Value

Type: AttachmentInfo
See Also