The RemoveFromRepository method removes the package from the specified repository.
Package Object |
object.RemoveFromRepository(
RepositoryServerName,
RepositoryDatabaseName,
RepositoryUserName,
RepositoryUserPassword,
PackageID,
[VersionID],
[PackageName],
[Flags])
Part | Description |
---|---|
Package | Expression that evaluates to an object in the Applies To list |
RepositoryServerName | Repository server name |
RepositoryDatabaseName | Repository username |
RepositoryUsername | Repository database name or DSN |
RepositoryUserPassword | Repository user password |
PackageID | Package identifier, which is a string representation of a GUID |
VersionID | Version identifier, which is a string representation of a GUID |
PackageName | Package name |
Flags | DTS Repository Storage Flags constant |
RepositoryDatabaseName is evaluated as an ODBC DSN if RepositoryServerName is empty or NULL. Otherwise, RepositoryServerName and RepositoryDatabaseName are used to create a DSN-less connection.
If VersionID is not specified or is blank, the most recent version of the package is removed.
HRESULT RemoveFromRepository(BSTR RepositoryServerName,
BSTR RepositoryDatabaseName,
BSTR RepositoryUserName,
BSTR RepositoryUserPassword,
BSTR PackageID,
BSTR VersionID),
BSTR PackageName,
DTS Repository Storage Flags Flags);