Share via


PackageDependency.GetFromId(String) Method

Definition

Creates a new package dependency instance from the specified package dependency ID.

public:
 static PackageDependency ^ GetFromId(Platform::String ^ id);
 static PackageDependency GetFromId(winrt::hstring const& id);
public static PackageDependency GetFromId(string id);
function getFromId(id)
Public Shared Function GetFromId (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