EditorHasValidation.SetValidation Method
Sets Validation.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'宣言
Public Shared Sub SetValidation ( _
element As Editor, _
newValidation As Validation _
)
public static void SetValidation(
Editor element,
Validation newValidation
)
public:
static void SetValidation(
Editor^ element,
Validation^ newValidation
)
static member SetValidation :
element:Editor *
newValidation:Validation -> unit
public static function SetValidation(
element : Editor,
newValidation : Validation
)
Parameters
- element
Type: Microsoft.VisualStudio.Modeling.DslDefinition.Editor
- newValidation
Type: Microsoft.VisualStudio.Modeling.DslDefinition.Validation
.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.