Export (0) Print
Expand All

Application.PackagePassword Property

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

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

Public WriteOnly Property PackagePassword As String
Dim instance As Application
Dim value As String

instance.PackagePassword = value

Property Value

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

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

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

Community Additions

© 2014 Microsoft