Explicit 演算子
| 編集/提案 ソースを表示Explicit(String to PathString)
通常の文字列をパス文字列へ明示的に変換(キャスト)します。
宣言
public static explicit operator PathString(string path)
引数
| 型 | 名前 | 説明 |
|---|---|---|
| System.String | path | パス文字列へ変換する通常の文字列です。 |
戻り値
| 型 | 説明 |
|---|---|
| PathString |
例外
| 型 | 条件 |
|---|---|
| System.ArgumentNullException |
|
| InvalidPathFormatException | 無効なパス文字列が渡されました。 |
| System.Security.SecurityException |