ValidationStateAttribute Constructor
Apply this attribute to a model element class to control whether its instances are included in validation operations.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public Sub New ( _
validationState As ValidationState _
)
public ValidationStateAttribute(
ValidationState validationState
)
public:
ValidationStateAttribute(
ValidationState validationState
)
new :
validationState:ValidationState -> ValidationStateAttribute
public function ValidationStateAttribute(
validationState : ValidationState
)
Parameters
validationState
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationStateSpecifies whether validation is enabled or disabled for instances of this class.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.