Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction | Help Version 19.0.2.15
|
Leadtools.MediaStreaming Namespace > PathResolver Class : Resolve Method |
'Usage
Dim instance As PathResolver Dim path As String Dim value As String value = instance.Resolve(path)
If the method fails, an error is raised. For more information, refer to the Error Codes.
Imports Leadtools Imports Leadtools.MediaStreaming Public _pathresolver As PathResolver = Nothing Public _result As Boolean = False Public Sub ResolvePathExample() Try ' this example will get the path of the log folder and open it in ' create an instance of the PathResolver object _pathresolver = New Leadtools.MediaStreaming.PathResolver() ' get the full path of the log folder Dim strPath As String = _pathresolver.Resolve("ltmsLogFolder") Process.Start(strPath) _result = True Catch e1 As Exception _result = False End Try End Sub
using Leadtools; using Leadtools.MediaStreaming; public PathResolver _pathresolver = null; public bool _result = false; public void ResolvePathExample() { try { // this example will get the path of the log folder and open it in // create an instance of the PathResolver object _pathresolver = new Leadtools.MediaStreaming.PathResolver(); // get the full path of the log folder string strPath = _pathresolver.Resolve("ltmsLogFolder"); Process.Start(strPath); _result = true; } catch (Exception) { _result = false; } }