ManagementPack.GetDiscoveries Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves a collection of all ManagementPackDiscovery
elements defined in the management pack.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackElementCollection<Microsoft::EnterpriseManagement::Configuration::ManagementPackDiscovery ^> ^ GetDiscoveries();
public Microsoft.EnterpriseManagement.Configuration.ManagementPackElementCollection<Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscovery> GetDiscoveries ();
member this.GetDiscoveries : unit -> Microsoft.EnterpriseManagement.Configuration.ManagementPackElementCollection<Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscovery>
Public Function GetDiscoveries () As ManagementPackElementCollection(Of ManagementPackDiscovery)
Returns
The collection of discovery elements.
Remarks
A discovery targets an existing class that you want to monitor and runs for every instance of that class in a management group. Scripts are defined as part of discoveries.