ManagementPack.TryAcceptChanges Method (ManagementPackVerificationTypes)
[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 by using a verification type.
Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)
Usage
'Usage
Dim instance As ManagementPack
Dim verificationTypes As ManagementPackVerificationTypes
Dim returnValue As IList(Of ManagementPackVerificationResult)
returnValue = instance.TryAcceptChanges(verificationTypes)
Syntax
'Declaration
Public Function TryAcceptChanges ( _
verificationTypes As ManagementPackVerificationTypes _
) As IList(Of ManagementPackVerificationResult)
public IList<ManagementPackVerificationResult> TryAcceptChanges (
ManagementPackVerificationTypes verificationTypes
)
public:
IList<ManagementPackVerificationResult^>^ TryAcceptChanges (
ManagementPackVerificationTypes verificationTypes
)
public IList<ManagementPackVerificationResult> TryAcceptChanges (
ManagementPackVerificationTypes verificationTypes
)
public function TryAcceptChanges (
verificationTypes : ManagementPackVerificationTypes
) : IList<ManagementPackVerificationResult>
Parameters
- verificationTypes
Specifies a verification type.
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