public sealed class PackageOccurrence : IMessage<PackageOccurrence>, IEquatable<PackageOccurrence>, IDeepCloneable<PackageOccurrence>, IBufferMessage, IMessage
Reference documentation and code samples for the Grafeas v1 API class PackageOccurrence.
Details on how a particular software package was installed on a system.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis document provides reference documentation and code samples for the \u003ccode\u003ePackageOccurrence\u003c/code\u003e class within the Grafeas v1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePackageOccurrence\u003c/code\u003e details how a specific software package was installed on a system.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 3.7.0, with other versions ranging from 2.2.0 up to 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePackageOccurrence\u003c/code\u003e implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has several properties such as \u003ccode\u003eArchitecture\u003c/code\u003e, \u003ccode\u003eCpeUri\u003c/code\u003e, \u003ccode\u003eLicense\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003ePackageType\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e, each providing details about the installed package.\u003c/p\u003e\n"]]],[],null,["# Grafeas v1 API - Class PackageOccurrence (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.PackageOccurrence)\n- [3.8.0](/dotnet/docs/reference/Grafeas.V1/3.8.0/Grafeas.V1.PackageOccurrence)\n- [3.7.0](/dotnet/docs/reference/Grafeas.V1/3.7.0/Grafeas.V1.PackageOccurrence)\n- [3.6.0](/dotnet/docs/reference/Grafeas.V1/3.6.0/Grafeas.V1.PackageOccurrence)\n- [3.5.0](/dotnet/docs/reference/Grafeas.V1/3.5.0/Grafeas.V1.PackageOccurrence)\n- [3.4.0](/dotnet/docs/reference/Grafeas.V1/3.4.0/Grafeas.V1.PackageOccurrence)\n- [3.3.0](/dotnet/docs/reference/Grafeas.V1/3.3.0/Grafeas.V1.PackageOccurrence)\n- [3.2.0](/dotnet/docs/reference/Grafeas.V1/3.2.0/Grafeas.V1.PackageOccurrence)\n- [3.1.0](/dotnet/docs/reference/Grafeas.V1/3.1.0/Grafeas.V1.PackageOccurrence)\n- [3.0.0](/dotnet/docs/reference/Grafeas.V1/3.0.0/Grafeas.V1.PackageOccurrence)\n- [2.4.0](/dotnet/docs/reference/Grafeas.V1/2.4.0/Grafeas.V1.PackageOccurrence)\n- [2.3.0](/dotnet/docs/reference/Grafeas.V1/2.3.0/Grafeas.V1.PackageOccurrence)\n- [2.2.0](/dotnet/docs/reference/Grafeas.V1/2.2.0/Grafeas.V1.PackageOccurrence) \n\n public sealed class PackageOccurrence : IMessage\u003cPackageOccurrence\u003e, IEquatable\u003cPackageOccurrence\u003e, IDeepCloneable\u003cPackageOccurrence\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Grafeas v1 API class PackageOccurrence.\n\nDetails on how a particular software package was installed on a system. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PackageOccurrence \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PackageOccurrence](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.PackageOccurrence), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PackageOccurrence](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.PackageOccurrence), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PackageOccurrence](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.PackageOccurrence), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Grafeas.V1](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1)\n\nAssembly\n--------\n\nGrafeas.V1.dll\n\nConstructors\n------------\n\n### PackageOccurrence()\n\n public PackageOccurrence()\n\n### PackageOccurrence(PackageOccurrence)\n\n public PackageOccurrence(PackageOccurrence other)\n\nProperties\n----------\n\n### Architecture\n\n public Architecture Architecture { get; set; }\n\nThe CPU architecture for which packages in this distribution channel were\nbuilt. Architecture will be blank for language packages.\n\n### CpeUri\n\n public string CpeUri { get; set; }\n\nThe cpe_uri in [CPE format](https://cpe.mitre.org/specification/)\ndenoting the package manager version distributing a package.\nThe cpe_uri will be blank for language packages.\n\n### License\n\n public License License { get; set; }\n\nLicenses that have been declared by the authors of the package.\n\n### Location\n\n public RepeatedField\u003cLocation\u003e Location { get; }\n\nAll of the places within the filesystem versions of this package\nhave been found.\n\n### Name\n\n public string Name { get; set; }\n\nThe name of the installed package.\n\n### PackageType\n\n public string PackageType { get; set; }\n\nThe type of package; whether native or non native (e.g., ruby gems,\nnode.js packages, etc.).\n\n### Version\n\n public Version Version { get; set; }\n\nThe version of the package."]]