Share via


ManagementPack.TryAcceptChanges Method

Definition

Commits all the changes made to the current management pack.

Overloads

TryAcceptChanges()

Commits all the changes made to the current management pack.

TryAcceptChanges(ManagementPackVerificationTypes)

Commits all the changes made to the current management pack by using a verification type.

TryAcceptChanges()

Commits all the changes made to the current management pack.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::Verification::ManagementPackVerificationResult ^> ^ TryAcceptChanges();
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.Verification.ManagementPackVerificationResult> TryAcceptChanges ();
member this.TryAcceptChanges : unit -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.Verification.ManagementPackVerificationResult>
Public Function TryAcceptChanges () As IList(Of ManagementPackVerificationResult)

Returns

A list of verification results.

Remarks

This method is similar to AcceptChanges method, except that this method does not throw an exception if the commit fails at verification stage.

If the verification fails with errors, nothing will be committed to the management pack.

If there are only warnings, then the commit is still successful.

Applies to

TryAcceptChanges(ManagementPackVerificationTypes)

Commits all the changes made to the current management pack by using a verification type.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::Verification::ManagementPackVerificationResult ^> ^ TryAcceptChanges(Microsoft::EnterpriseManagement::Configuration::IO::ManagementPackVerificationTypes verificationTypes);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.Verification.ManagementPackVerificationResult> TryAcceptChanges (Microsoft.EnterpriseManagement.Configuration.IO.ManagementPackVerificationTypes verificationTypes);
member this.TryAcceptChanges : Microsoft.EnterpriseManagement.Configuration.IO.ManagementPackVerificationTypes -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.Verification.ManagementPackVerificationResult>
Public Function TryAcceptChanges (verificationTypes As ManagementPackVerificationTypes) As IList(Of ManagementPackVerificationResult)

Parameters

verificationTypes
ManagementPackVerificationTypes

Specifies a verification type.

Returns

A list of verification results.

Remarks

This method is similar to AcceptChanges method, except that this method does not throw an exception if the commit fails at verification stage.

If the verification fails with errors, nothing will be committed to the management pack.

If there are only warnings, then the commit is still successful.

Applies to