Share via


Configuration.GetLocationPaths Method

Definition

Gets an array of all location paths that are specified in the configuration file.

public:
 cli::array <System::String ^> ^ GetLocationPaths();
public string[] GetLocationPaths ();
member this.GetLocationPaths : unit -> string[]
Public Function GetLocationPaths () As String()

Returns

String[]

An array of all location paths that are specified in the configuration file.

Examples

The following example gets the location paths for the administration configuration.

public void GetGetLocationPaths(ServerManager manager)
{
    Configuration config = manager.GetAdministrationConfiguration();
    string[] paths = config.GetLocationPaths();
    Console.WriteLine("There are " + paths.Length.ToString() + " paths.");
    foreach (string path in paths)
    {
        Console.WriteLine("\t{0}", path);
    }
}

Applies to