Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Removes a resolved package dependency from the current process' package graph (that is, a run-time reference for a framework package dependency that was added by using the AddPackageDependency method).
Syntax
HRESULT RemovePackageDependency(
PACKAGEDEPENDENCY_CONTEXT packageDependencyContext
);
Parameters
packageDependencyContext
Type: PACKAGEDEPENDENCY_CONTEXT
The handle of the package dependency to remove.
Return value
Type: HRESULT
If the function succeeds it returns ERROR_SUCCESS. Otherwise, the function returns an error code. The possible error codes include the following.
| Return code | Description |
|---|---|
| E_INVALIDARG | The packageDependencyContext parameter is NULL on input. |
Remarks
This function does not unload loaded resources such as DLLs. After removing a package dependency, any files loaded from the package can continue to be used. Future file resolution will fail to see the removed package dependency.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 11 (introduced in 10.0.22000.0) |
| Header | appmodel.h |
| Library | OneCoreUAP.Lib |