VirtualPathHelperRegisterVirtualPath Method (String, VirtualPathHelperGetVirtualFileObjectHandler, Boolean, VirtualPathHelperGetVirtualFileObjectHandler) |
Register callback method for specified virtual path
Namespace: CMS.IOAssembly: CMS.IO (in CMS.IO.dll) Version: 10.0.0
Syntax public static bool RegisterVirtualPath(
string relativePath,
VirtualPathHelperGetVirtualFileObjectHandler getObjectCallback,
bool overrideExisting,
ref VirtualPathHelperGetVirtualFileObjectHandler existingCallbackMethod
)
Parameters
- relativePath
- Type: SystemString
Relative path - getObjectCallback
- Type: CMS.IOVirtualPathHelperGetVirtualFileObjectHandler
GetVirtualFileObjectHandler callback method - overrideExisting
- Type: SystemBoolean
Indicates whether current path should override existing - existingCallbackMethod
- Type: CMS.IOVirtualPathHelperGetVirtualFileObjectHandler
Returns existing callback method if current override the path registration
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