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);
}
}
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for