Click or drag to resize
MediaFileInfoProviderGetMediaFileInfo Method (Guid, String)

Note: This API is now obsolete.

Returns media file with specified GUID.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IMediaFileInfoProvider.Get(System.Guid, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - MediaFileInfo.Provider.")]
public static MediaFileInfo GetMediaFileInfo(
	Guid guid,
	string siteName
)

Parameters

guid
Type: SystemGuid
Media file GUID
siteName
Type: SystemString
Site name

Return Value

Type: MediaFileInfo
See Also