VirtualPathHelperRegisterVirtualPath Method (String, VirtualPathHelperGetVirtualFileObjectHandler) |
Register callback method for specified virtual path.
Namespace: CMS.IOAssembly: CMS.IO (in CMS.IO.dll) Version: 12.0.0
Syntax public static bool RegisterVirtualPath(
string relativePath,
VirtualPathHelperGetVirtualFileObjectHandler getObjectCallback
)
Parameters
- relativePath
- Type: SystemString
Relative path - getObjectCallback
- Type: CMS.IOVirtualPathHelperGetVirtualFileObjectHandler
GetVirtualFileObjectHandler callback method
Return Value
Type:
BooleanReturns true if path was registered successfully
Remarks Does not register path if virtual path provider is not correctly registered
See Also