2017-01-30 37 views
1
/// <summary> 
/// Service Contract Class - GetItemResponse 
/// </summary> 
[MessageContract(IsWrapped = true)] 
public partial class GeItemResponse 
{ 
} 

在上面的IsWrapped屬性中設置爲true,這個屬性的用法是什麼,任何人都可以解釋它嗎?什麼是WCF類中的IsWrapped屬性

+0

可能重複[WCF中IsWrapped屬性的用途是什麼](https://stackoverflow.com/questions/21095374/what-is-the-purpose-of-the -wwf-property-in-wcf) –

回答

0

當您將IsWrapped設置爲false時,郵件正文將不會包含在具有操作名稱的元素中。 在這裏您可以閱讀更多:What is the purpose of the IsWrapped property in WCF

+0

請不要回答重複的問題。相反,投票將其作爲重複項目關閉。謝謝 –