WaitForChangedResult.Name プロパティ

定義

変更後のファイルまたはディレクトリの名前を取得または設定します。

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string? Name { get; set; }
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

プロパティ値

String

変更後のファイルまたはディレクトリの名前。

Nameプロパティの例を次に示します。 このコード例は、構造体に対して提供されるより大きな例の WaitForChangedResult 一部です。

' Suspend the calling thread until the file has been deleted.
Dim cr As IO.WaitForChangedResult = fsw.WaitForChanged(WatcherChangeTypes.Deleted)

' Tell the user the file is deleted and exit.
Console.WriteLine("The {0} files is deleted; program is exiting", cr.Name)

適用対象