Partager via


Application.PackagePassword Property

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

Espace de noms: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Syntaxe

'Déclaration
Public WriteOnly Property PackagePassword As String
public string PackagePassword { set; }
public:
property String^ PackagePassword {
    void set (String^ value);
}
/** @property */
public void set_PackagePassword (String value)
public function set PackagePassword (value : String)

Valeur de propriété

A String that contains the password for the package.

Exemple

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

Sécurité des threads

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

Application Class
Application Members
Microsoft.SqlServer.Dts.Runtime Namespace