62,041
社区成员
发帖
与我相关
我的任务
分享
public String BodyRTF
{
get
{
//get value for the RTF compressed MAPI property
byte[] rtfBytes = this.GetMapiPropertyBytes(OutlookStorage.PR_RTF_COMPRESSED);
//return null if no property value exists
if (rtfBytes == null || rtfBytes.Length == 0)
{
return null;
}
//decompress the rtf value
rtfBytes = CLZF.decompressRTF(rtfBytes);
//encode the rtf value as an ascii string and return
string a1 = Encoding.Unicode.GetString(rtfBytes);
string a2 = Encoding.Default.GetString(rtfBytes);
string a3 = Encoding.UTF8.GetString(rtfBytes);
return Encoding.ASCII.GetString(rtfBytes);
}
}