Configuration.GetLocationPaths Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
}
}