PasswordBox.Clear 메서드

정의

Password 속성 값을 지웁니다.

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

예제

다음 예제에서는 메서드를 사용하여 을 PasswordBox 지우는 Clear 방법을 보여줍니다.

PasswordBox pwdBox = new PasswordBox();
pwdBox.Password = "Open Sesame!";

// Clear any contents of the PasswordBox, as well as the value stored in the Password property.
pwdBox.Clear();
Dim pwdBox As New PasswordBox()
pwdBox.Password = "Open Sesame!"

' Clear any contents of the PasswordBox, as well as the value stored in the Password property.
pwdBox.Clear()

설명

속성 값 Password 은 이 메서드를 호출한 후입니다 Empty .

적용 대상