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)

적용 대상