Click or drag to resize
MediaLibraryHelperGetMediaSource Method (String, String, String)
Returns MediaSource for given media file.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 9.0.0
Syntax
C#
public static MediaSource GetMediaSource(
	string filePath,
	string siteName,
	string libraryFolder
)

Parameters

filePath
Type: SystemString
Media file path
siteName
Type: SystemString
Site name
libraryFolder
Type: SystemString
Library folder name

Return Value

Type: MediaSource
See Also