IManagementPackManagement.TryImportBundle Method

Definition

Tries to import the specified management pack bundle into the system.

Overloads

TryImportBundle(ManagementPackBundle)

Tries to import the specified management pack bundle into the system. All management packs in this bundle get imported.

TryImportBundle(ManagementPackBundle, ImportPackagedManagementPackCallback)

Tries to import the specified management pack bundle into the system. The decision of whether a management pack can be imported or not is made by the specified custom callback. If the callback returns false, then the method does not import the management pack. If the callback returns true, then the method imports the management pack.

TryImportBundle(ManagementPackBundle)

Tries to import the specified management pack bundle into the system. All management packs in this bundle get imported.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::Verification::ManagementPackVerificationResult ^> ^ TryImportBundle(Microsoft::EnterpriseManagement::Packaging::ManagementPackBundle ^ package);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.Verification.ManagementPackVerificationResult> TryImportBundle (Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle package);
abstract member TryImportBundle : Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.Verification.ManagementPackVerificationResult>
Public Function TryImportBundle (package As ManagementPackBundle) As IList(Of ManagementPackVerificationResult)

Parameters

package
ManagementPackBundle

The management pack bundle to import.

Returns

The list of verification results.

Applies to

TryImportBundle(ManagementPackBundle, ImportPackagedManagementPackCallback)

Tries to import the specified management pack bundle into the system. The decision of whether a management pack can be imported or not is made by the specified custom callback. If the callback returns false, then the method does not import the management pack. If the callback returns true, then the method imports the management pack.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::Verification::ManagementPackVerificationResult ^> ^ TryImportBundle(Microsoft::EnterpriseManagement::Packaging::ManagementPackBundle ^ package, Microsoft::EnterpriseManagement::ImportPackagedManagementPackCallback ^ handler);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.Verification.ManagementPackVerificationResult> TryImportBundle (Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle package, Microsoft.EnterpriseManagement.ImportPackagedManagementPackCallback handler);
abstract member TryImportBundle : Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle * Microsoft.EnterpriseManagement.ImportPackagedManagementPackCallback -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.Verification.ManagementPackVerificationResult>
Public Function TryImportBundle (package As ManagementPackBundle, handler As ImportPackagedManagementPackCallback) As IList(Of ManagementPackVerificationResult)

Parameters

package
ManagementPackBundle

The management pack bundle to import.

handler
ImportPackagedManagementPackCallback

The callback that decides whether each management pack in the bundle should be imported or not.

Returns

The list of verification results.

Applies to