我想控制帮助页面上的内容,尤其是有关每个字段的信息。例如,我有这个类:
[DataContract(Name = "MH")]
public class MessageHeader
{
[DataMember(Name = "I")]
public Guid Id { get; set; }
[DataMember(Name = "CI")]
public Guid ChannelId { get; set; }
[DataMember(Name = "CR")]
public double Created { get; set; }
[DataMember(Name = "CTI")]
public int ContentTypeId { get; set; }
[DataMember(Name = "S")]
public string Subject { get; set; }
[DataMember(Name = "EC")]
public bool Encrypted { get; set; }
[DataMember(Name = "E")]
public double Expire { get; set; }
}
我试图添加 DescriptionAttribute 但它没有显示在帮助页面上。知道如何为每个字段添加描述吗?