Application.PackagePassword Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the value of the password for the package. This property is write-only.
public:
property System::String ^ PackagePassword { void set(System::String ^ value); };
public string PackagePassword { set; }
member this.PackagePassword : string
Public Property PackagePassword As String
Property Value
A String that contains the password for the package.
Examples
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