System.IOUtils.TPath.Combine
Delphi
class function Combine(const Path1, Path2: string): string; inline; static;
C++
static System::UnicodeString __fastcall Combine(const System::UnicodeString Path1, const System::UnicodeString Path2);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
説明
2 つのパス文字列を結合します。
Combine を呼び出すと、2 つの異なるパスを結合して新しいパスを取得できます。第 2 パスが絶対パスであれば、Combine はそれをそのまま返し、そうでない場合、Combine は第 1 パスに第 2 パスを連結して返します。このメソッドに必要なパラメータの一覧を以下の表に示します。
名前 | 意味 |
---|---|
Path1 |
第 1 パス。Path1 は Path2 のルートとして使用されます。 |
Path2 |
Path1 に連結されるパス |
メモ: 指定されたパスに無効な文字が含まれていた場合、Combine は例外を発生させます。