 | RxPathChangePrefix Method (RxPath, RxPath, RxPath) |
Changes a given prefix of an RxPath to a new prefix.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static RxPath ChangePrefix(
RxPath path,
RxPath oldPrefix,
RxPath newPrefix
)
Public Shared Function ChangePrefix (
path As RxPath,
oldPrefix As RxPath,
newPrefix As RxPath
) As RxPath
Parameters
- path
- Type: Ranorex.CoreRxPath
The path to change. - oldPrefix
- Type: Ranorex.CoreRxPath
The old prefix. - newPrefix
- Type: Ranorex.CoreRxPath
The new prefix.
Return Value
Type:
RxPathThe path with the changed prefix.
Exceptions| Exception | Condition |
|---|
| RxPathException | If oldPrefix is not a prefix of the supplied path. |
See Also