Właściwość Application.PackagePassword
Ustawia wartość hasło dla pakiet.Ta właściwość jest tylko do zapisu.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Runtime
Zestaw: Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)
Składnia
'Deklaracja
Public WriteOnly Property PackagePassword As String
Set
'Użycie
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)
Wartość właściwości
Typ: System.String
A ciąg zawiera hasło dla pakiet.
Przykłady
Następujący kod ilustruje przykład sposobu zestaw hasła na pakiet.
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