I can only understand the type as far as SoftwareIdentity
. I'm not sure what SoftwareIdentity#GetPackage
signifies.
Get-Package | Get-Member | Select-Object -Property TypeName -Unique
TypeName
--------
Microsoft.PackageManagement.Packaging.SoftwareIdentity#GetPackage
In this case, Microsoft.PackageManagement.Packaging.SoftwareIdentity#GetPackage
is just the fully-qualified type name for the GetPackage public class (used by the Get-Package
cmdlet) within Microsoft's PackageManagement
module: reference 1
The default display view defined for GetPackage provides Name
, Version
, Source
, and ProviderName
properties: reference 2 . This view definition can be seen in-use for the display output of Example 1 of the Get-Package
cmdlet.
The Get-Package
cmdlet returns an array of SoftwareIdentity
objects: reference 3 , explaining part of the TypeName used.
Historically, using WMI as a back-drop, Microsoft might expose type names using this format to separate wrapper classes vs. underlying namespaces and class names of an object -- which you may discover in other WMI-based coding efforts.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.