ManagementPack.TryAcceptChanges 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.
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.