Share via


PackageDependency.GetFromIdForSystem(String) Method

Definition

Creates a new package dependency instance from the specified package dependency ID. The package dependency is accessible to all users, , and this method requires that the caller has administrative privileges.

public:
 static PackageDependency ^ GetFromIdForSystem(Platform::String ^ id);
 static PackageDependency GetFromIdForSystem(winrt::hstring const& id);
public static PackageDependency GetFromIdForSystem(string id);
function getFromIdForSystem(id)
Public Shared Function GetFromIdForSystem (id As String) As PackageDependency

Parameters

id
String

Platform::String

winrt::hstring

The existing package dependency ID from which to create the new package dependency object.

Returns

The object that represents the new package dependency, and provides members you can use to manage the lifetime of the dependency.

Applies to

See also