Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
ValidationMetadataException Class
The exception thrown when an error occurs while validating input for any validation attribute.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Dim instance As ValidationMetadataException
Visual Basic
<SerializableAttribute> _
Public Class ValidationMetadataException
    Inherits MetadataException
C#
[SerializableAttribute] 
public class ValidationMetadataException : MetadataException
C++
[SerializableAttribute] 
public ref class ValidationMetadataException : public MetadataException
J#
/** @attribute SerializableAttribute() */ 
public class ValidationMetadataException extends MetadataException
JScript
SerializableAttribute 
public class ValidationMetadataException extends MetadataException

This exception should be thrown by all attributes that derive from ValidateArgumentsAttribute or ValidateEnumeratedArgumentsAttribute.


System.Object
   System.Exception
     System.SystemException
       System.Management.Automation.RuntimeException
         System.Management.Automation.MetadataException
          System.Management.Automation.ValidationMetadataException
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker