Click or drag to resize
AttachmentInfoProviderExtensionsGetWithoutBinary Method (IAttachmentInfoProvider, Int32)
Gets an instance of attachment based on its ID.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public static AttachmentInfo GetWithoutBinary(
	this IAttachmentInfoProvider attachmentInfoProvider,
	int id
)

Parameters

attachmentInfoProvider
Type: CMS.DocumentEngineIAttachmentInfoProvider
Provider for AttachmentInfo management.
id
Type: SystemInt32
ID of the attachment to look for.

Return Value

Type: AttachmentInfo
Returns an instance of AttachmentInfo corresponding to id or null.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAttachmentInfoProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also