Share via


ManagementPack.GetDiscovery(String) Method

Definition

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.

Applies to