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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
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.ValidationState
Specifies 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.