Compartilhar via


Propriedade do RDL Application.PackagePassword

Sets the value of the password for the package. This property is write-only.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (em Microsoft.SqlServer.ManagedDTS.dll)

Sintaxe

'Declaração
Public WriteOnly Property PackagePassword As String 
    Set
'Uso
Dim instance As Application 
Dim value As String

instance.PackagePassword = value
public string PackagePassword { set; }
public:
property String^ PackagePassword {
    void set (String^ value);
}
member PackagePassword : string with get, set
function set PackagePassword (value : String)

Valor da propriedade

Tipo: System.String
A String that contains the password for the package.

Exemplos

The following code example shows how to set the password on a package.

class ApplicationTests
{
        static void Main(string[] args)
        {
            Application app = new Application();
            String pkgPswd = "myPassword";
            app.PackagePassword = pkgPswd;
        }
    }
Class ApplicationTests
        Sub Main(ByVal args() As String)
            Dim app As Application =  New Application() 
            Dim pkgPswd As String =  "myPassword" 
            app.PackagePassword = pkgPswd
        End Sub
End Class

Consulte também

Referência

Application Classe

Namespace Microsoft.SqlServer.Dts.Runtime