xs:key, why is validation passing when key value is not member of key reference?

前端 未结 2 1392
不思量自难忘°
不思量自难忘° 2021-01-20 06:12

I am interested in defining a key constraint in my Xsd. It is my understanding that using xs:key should constrain the value used to a member of a referenced list of values.<

2条回答
  •  灰色年华
    2021-01-20 06:55

    I guess you should use ValidationEventHandler :

    settings.ValidationEventHandler += new ValidationEventHandler (ValidationCallBack);
    
    private static void ValidationCallBack (object sender, ValidationEventArgs args) {}
    

提交回复
热议问题