共用方式為


Configuration.GetLocationPaths 方法

定義

取得組態檔中所指定之所有位置路徑的陣列。

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

傳回

String[]

組態檔中指定的所有位置路徑陣列。

範例

下列範例會取得系統管理組態的位置路徑。

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);
    }
}

適用於