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

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 8.2.23
Syntax
C#
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: Boolean
Returns true if path was registered successfully
See Also