short SetBindOwner(BSTR CollectionName, BSTR PackageName, BSTR OwnerID)
Description
This function enables you to specify an owner different from your user ID for the package that you are binding. This may be necessary if your user ID does not have the required authorizations to bind the package, but the specified owner does.
Parameters
Name | Description |
---|---|
CollectionName | The collection ID of the package for which you want to specify the owner. |
PackageName | The name of the package for which you want to specify the owner. |
OwnerID | The owner ID for the package you are binding. |
Return Value
Return value will be zero if successful or non-zero if unsucessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.
Related Tasks