XmlAttributes.XmlIgnore等效于XAML

时间:2011-07-15 23:10:09

标签: .net vb.net xaml serialization

如何告诉xml序列化忽略属性。 IE等效于xml序列化的Xml Attributes.XmlIgnore属性。

Class MyObject

   'Is there an equivalent of this for xaml?
   <XmlIgnoreAttribute()> Public Property DontSerializeMe as String

End Class

1 个答案:

答案 0 :(得分:2)

是:

[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]