Click or drag to resize
VirtualPathHelperRegisterVirtualPath Method (String, VirtualPathHelperGetVirtualFileObjectHandler)
Register callback method for specified virtual path.

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 11.0.0
Syntax
C#
public static bool RegisterVirtualPath(
	string relativePath,
	VirtualPathHelperGetVirtualFileObjectHandler getObjectCallback
)

Parameters

relativePath
Type: SystemString
Relative path
getObjectCallback
Type: CMS.IOVirtualPathHelperGetVirtualFileObjectHandler
GetVirtualFileObjectHandler callback method

Return Value

Type: Boolean
Returns true if path was registered successfully
Remarks
Does not register path if virtual path provider is not correctly registered
See Also