0
我想阻止通过我的WCF Web服务暴露财产。我试图添加无效的XmlIgnore属性错误。我们正在使用.NET 3.5。 WCF。当通过网络服务暴露时隐藏公共财产
这不起作用:
public class MyClass
{
public string S1 { get; set; }
[XmlIgnore]
public string S2NotExposed { get; set; }
}
感谢您的回答! – BrokeMyLegBiking 2010-04-12 18:08:20