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

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

Parameters

attachmentInfoProvider
Type: CMS.DocumentEngineIAttachmentInfoProvider
Provider for AttachmentInfo management.
guid
Type: SystemGuid
GUID of the attachment to look for.
siteId
Type: SystemInt32
ID of the site to which to constrain the lookup.

Return Value

Type: AttachmentInfo
Returns an instance of AttachmentInfo corresponding to guid and siteId 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when attachmentInfoProvider is null.
See Also