Share via


TryGetFullPathForMediaFile Method

Microsoft Robotics Class Reference

Returns true if the fileName can be fully qualified and it represents an actual file. The following steps are used to fully qualify the filename: 1. If the filename is null or empty, it cannot be qualified. 2. If the filename already contains a fully qualified path under LayoutPaths.RootDir, it is returned as-is. 3. If the filename is relative to the GetMediaFileRootDirectory() then return that fully qualified path. 4. If the filename is relative to any previously successful root directory, then return that fully qualified path. This method does not throw an exception if the file cannot be found.

Namespace: Microsoft.Robotics.Simulation.Physics
Assembly: SimulationCommon (in SimulationCommon.dll) Version: 4.0.261.0 (4.0.261.0)

Syntax

public static bool TryGetFullPathForMediaFile(
    string fileName,
    out string qualifiedPath
)

Parameters

See Also

PathManager Class

Microsoft.Robotics.Simulation.Physics Namespace