Combine メソッド
| 編集/提案 ソースを表示Combine(String)
指定されたパスを現在のパスと結合します。
宣言
public PathString Combine(string path)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String | path | 結合するパス文字列です。 | 
戻り値
| 型 | 説明 | 
|---|---|
| PathString | 結合された新しいパス文字列、または、 | 
例外
| 型 | 条件 | 
|---|---|
| InvalidPathFormatException | 無効なパス文字列が渡されました。 | 
| System.Security.SecurityException | 
Combine(String, String)
指定された2つのパスを現在のパスと結合します。
宣言
public PathString Combine(string path1, string path2)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String | path1 | 結合する1つ目のパス文字列です。 | 
| System.String | path2 | 結合する2つ目のパス文字列です。 | 
戻り値
| 型 | 説明 | 
|---|---|
| PathString | 結合された新しいパス文字列、または、指定された全てのパスが空の場合は現在のインスタンスを返します。 | 
例外
| 型 | 条件 | 
|---|---|
| InvalidPathFormatException | 無効なパス文字列が渡されました。 | 
| System.Security.SecurityException | 
Combine(String, String, String)
指定された3つのパスを現在のパスと結合します。
宣言
public PathString Combine(string path1, string path2, string path3)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String | path1 | 結合する1つ目のパス文字列です。 | 
| System.String | path2 | 結合する2つ目のパス文字列です。 | 
| System.String | path3 | 結合する3つ目のパス文字列です。 | 
戻り値
| 型 | 説明 | 
|---|---|
| PathString | 結合された新しいパス文字列、または、指定された全てのパスが空の場合は現在のインスタンスを返します。 | 
例外
| 型 | 条件 | 
|---|---|
| InvalidPathFormatException | 無効なパス文字列が渡されました。 | 
| System.Security.SecurityException | 
Combine(String[])
複数のパスを一つのパスに結合します。
宣言
public PathString Combine(params string[] paths)引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.String[] | paths | 結合する複数のパス文字列です。 | 
戻り値
| 型 | 説明 | 
|---|---|
| PathString | 結合された新しいパス文字列、または、 | 
例外
| 型 | 条件 | 
|---|---|
| InvalidPathFormatException | 無効なパス文字列が渡されました。 | 
| System.Security.SecurityException |