_Document.Password 属性

定义

设置打开指定的文档时必须提供一个密码。Sets a password that must be supplied to open the specified document.

public:
 property System::String ^ Password {  void set(System::String ^ value); };
public string Password { set; }
member this.Password : string
Public Property Password As String

属性值

String

注解

避免在应用程序中使用硬编码的密码。如果某个过程需要密码,可要求用户提供密码,将其以变量形式进行存储,然后在编码中使用该变量。Avoid using hard-coded passwords in your applications. If a password is required in a procedure, request the password from the user, store it in a variable, and then use the variable in your code.

适用于