次の方法で共有


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

.NET Framework Security

See Also

Reference

EditorHasValidation Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace