The Org
property of the Package
class represents the owner of the package. It provides information about the organization that owns or manages the package within the Sandbox environment.
The Org
property of the Package
class represents the owner of the package. It provides information about the organization that owns or manages the package within the Sandbox environment.
To access the organization information of a package, use the Org
property. This property is read-only and returns an instance of Sandbox.Package.Organization
, which contains details about the organization.
// Example of accessing the Org property Sandbox.Package myPackage = GetPackage(); // Assume GetPackage() returns a valid Package instance Sandbox.Package.Organization packageOwner = myPackage.Org; // Use the packageOwner object to access organization details string organizationName = packageOwner.Name; Console.WriteLine($"Package is owned by: {organizationName}");