PackageId.FamilyName | familyName property
Gets the family name of the package.
Syntax
Property value
Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]
The family name.
Remarks
Windows Phone 8
This API is not implemented and will throw an exception if called.
Examples
Use the Package.Current | current property to get the package for the current app. Use the Package.Id | id property to get the package ID. This example gets package identity information by using members of the Package and PackageId classes.
using Windows.ApplicationModel; Package package = Package.Current; PackageId packageId = package.Id; PackageVersion version = packageId.Version; String output = String.Format( "Name: \"{0}\"\n" + "Version: {1}.{2}.{3}.{4}\n" + "Architecture: {5}\n" + "ResourceId: \"{6}\"\n" + "Publisher: \"{7}\"\n" + "PublisherId: \"{8}\"\n" + "FullName: \"{9}\"\n" + "FamilyName: \"{10}\"\n" + "IsFramework: {11}", packageId.Name, version.Major, version.Minor, version.Build, version.Revision, packageId.Architecture, packageId.ResourceId, packageId.Publisher, packageId.PublisherId, packageId.FullName, packageId.FamilyName, package.IsFramework);
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
See also
- Samples
- App package information sample
- Reference
- PackageId
- PackageId.FullName
Build date: 2/25/2013