PathString クラス
パス文字列を表します。 このクラスは継承できません。
継承
実装
継承されたメンバー
名前空間: ExapisSOP.IO
アセンブリ: ExapisSOP.dll
構文
[TypeConverter(typeof(PathStringConverter))]
public sealed class PathString : IFormattable, IEquatable<PathString>, IEquatable<string>, IComparable, IComparable<PathString>, IComparable<string>
脚注
System.IO.Pathクラスと併用してください。
コンストラクタ 一覧
| 名前 | 説明 |
|---|---|
| PathString() | 型'PathString'の新しいインスタンスを生成します。 |
| PathString(String) | 型'PathString'の新しいインスタンスを生成します。 |
プロパティ 一覧
| 名前 | 説明 |
|---|---|
| BasePath | 基底のパス文字列を取得します。 |
| Exists | 現在のパス文字列が実際に存在する場合はtrue、それ以外の場合はfalseを返します。 |
| IsDirectory | 現在のパス文字列が実際に存在し、ディレクトリである場合はtrueを返します。 それ以外の場合はfalseを返します。 |
| IsDrive | 現在のパス文字列が実際に存在し、ドライブである場合はtrueを返します。 それ以外の場合はfalseを返します。 |
| IsFile | 現在のパス文字列が実際に存在し、ファイルである場合はtrueを返します。 それ以外の場合はfalseを返します。 |
| IsRoot | 現在のパス文字列がルートディレクトリを表しているかどうかを判定します。 |
メソッド 一覧
| 名前 | 説明 |
|---|---|
| AsUri() | パス文字列をURIへ変換します。 |
| ChangeExtension(String) | パス文字列の拡張子を変更します。 |
| ChangeFileName(String) | パス文字列の拡張子を含むファイル名を変更します。 |
| Combine(String) | 指定されたパスを現在のパスと結合します。 |
| Combine(String, String) | 指定された2つのパスを現在のパスと結合します。 |
| Combine(String, String, String) | 指定された3つのパスを現在のパスと結合します。 |
| Combine(String[]) | 複数のパスを一つのパスに結合します。 |
| CompareTo(PathString) | 指定したパス文字列と現在のパス文字列を比較します。 |
| CompareTo(Object) | 指定したオブジェクトインスタンスの値と現在のインスタンスの値を比較します。 |
| CompareTo(String) | 指定した文字列と現在のパス文字列を比較します。 |
| EnsureNotFound() | 現在のパス文字列の拡張子を変更し実際に存在しないパス文字列を取得します。 |
| Equals(PathString) | 指定したパス文字列と現在のパス文字列が等価かどうか判定します。 |
| Equals(Object) | 指定したオブジェクトインスタンスの値と現在のインスタンスの値が等価かどうか判定します。 |
| Equals(String) | 指定した文字列と現在のパス文字列が等価かどうか判定します。 |
| GetDirectoryName() | 現在のパス文字列からディレクトリ情報を取得します。 |
| GetExtension() | 現在のパス文字列から拡張子情報を取得します。 |
| GetFileName() | 現在のパス文字列からファイル名情報を取得します。 |
| GetFileNameWithoutExtension() | 現在のパス文字列から拡張子を除くファイル名情報を取得します。 |
| GetHashCode() | 現在のパス文字列のハッシュコードを取得します。 |
| GetOriginalString() | コンストラクタに渡されたパス文字列を取得します。 |
| GetRelativePath() | 現在の作業ディレクトリを基にした相対パスを取得します。 |
| GetRelativePath(PathString) | 指定したパスを基にした相対パスを取得します。 |
| GetRootPath() | 現在のパス文字列からルートディレクトリ情報を取得します。 |
| ToString() | パス文字列を可読な文字列へ変換します。 |
| ToString(IFormatProvider) | 書式設定を利用してパス文字列を可読な文字列へ変換します。 |
| ToString(String) | 書式設定を利用してパス文字列を可読な文字列へ変換します。 |
| ToString(String, IFormatProvider) | 書式設定を利用してパス文字列を可読な文字列へ変換します。 |
演算子 一覧
| 名前 | 説明 |
|---|---|
| Addition(PathString, String) | 指定された二つのパス文字列を結合します。 |
| Equality(PathString, PathString) | 指定された二つのパス文字列が等価かどうか判定します。 |
| Explicit(String to PathString) | 通常の文字列をパス文字列へ明示的に変換(キャスト)します。 |
| GreaterThan(PathString, PathString) | 左辺が右辺超過かどうか判定します。 |
| GreaterThanOrEqual(PathString, PathString) | 左辺が右辺以上かどうか判定します。 |
| Implicit(PathString to String) | パス文字列を通常の文字列へ暗黙的に変換(キャスト)します。 |
| Inequality(PathString, PathString) | 指定された二つのパス文字列が不等価かどうか判定します。 |
| LessThan(PathString, PathString) | 左辺が右辺未満かどうか判定します。 |
| LessThanOrEqual(PathString, PathString) | 左辺が右辺以下かどうか判定します。 |
| Subtraction(PathString, PathString) |
|