This topic has not yet been rated - Rate this topic

PackageId.Publisher | publisher property

Applies to Windows and Windows Phone

Gets the publisher of the package.

Syntax

Public ReadOnly Property Publisher As String

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The publisher.

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.

Dim package As Windows.ApplicationModel.Package = Windows.ApplicationModel.Package.Current
Dim packageId As Windows.ApplicationModel.PackageId = package.Id
Dim version As Windows.ApplicationModel.PackageVersion = packageId.Version

Dim output As String = String.Format(
    "Name: ""{0}""" & VBCrLf & 
    "Version: {1}.{2}.{3}.{4}" & VBCrLf & 
    "Architecture: {5}" & VBCrLf & 
    "ResourceId: ""{6}""" & VBCrLf & 
    "Publisher: ""{7}""" & VBCrLf & 
    "PublisherId: ""{8}""" & VBCrLf & 
    "FullName: ""{9}""" & VBCrLf & 
    "FamilyName: ""{10}""" & VBCrLf & 
    "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

Windows.ApplicationModel
Windows::ApplicationModel [C++]

Metadata

Windows.winmd

See also

Samples
App package information sample
Reference
PackageId
PackageId.PublisherId

 

 

Show:
© 2014 Microsoft. All rights reserved.