Udostępnij za pośrednictwem


AppUriHandlerRegistration.PackageFamilyName Property

Definition

Gets the package family name for the app originally specified when creating the associated AppUriHandlerRegistrationManager object.

public:
 property Platform::String ^ PackageFamilyName { Platform::String ^ get(); };
winrt::hstring PackageFamilyName();
public string PackageFamilyName { get; }
var string = appUriHandlerRegistration.packageFamilyName;
Public ReadOnly Property PackageFamilyName As String

Property Value

String

Platform::String

winrt::hstring

The package family name for the app.

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Remarks

This method is useful in cases where the calling app hosts multiple hosted apps, and each one has its own app URI registrations. If the associated AppUriHandlerRegistrationManager was retrieved with by calling GetForUser, empty string is returned.

Applies to