ManagementPack.GetDiscovery(String) 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 the specified ManagementPackDiscovery object from the management pack.
public:
Microsoft::EnterpriseManagement::Configuration::ManagementPackDiscovery ^ GetDiscovery(System::String ^ name);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscovery GetDiscovery (string name);
member this.GetDiscovery : string -> Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscovery
Public Function GetDiscovery (name As String) As ManagementPackDiscovery
Parameters
- name
- String
The name of the discovery element.
Returns
The discovery element.
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.