ManagementPack.TryAcceptChanges Method ()
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Commits all the changes made to the current management pack.
Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)
Usage
'Usage
Dim instance As ManagementPack
Dim returnValue As IList(Of ManagementPackVerificationResult)
returnValue = instance.TryAcceptChanges
Syntax
'Declaration
Public Function TryAcceptChanges As IList(Of ManagementPackVerificationResult)
public IList<ManagementPackVerificationResult> TryAcceptChanges ()
public:
IList<ManagementPackVerificationResult^>^ TryAcceptChanges ()
public IList<ManagementPackVerificationResult> TryAcceptChanges ()
public function TryAcceptChanges () : IList<ManagementPackVerificationResult>
Return Value
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows Server 2003, and
Target Platforms
Windows Server 2008,Windows Server 2003
See Also
Reference
ManagementPack Class
ManagementPack Members
Microsoft.EnterpriseManagement.Configuration Namespace