contact.vcf Vcard 似乎不是有效的名片。 Windows phone 8.1 C#
contact.vcf Vcard does not seems to be a valid business card. Windows phone 8.1 C#
我在 windows phone 8.1 应用程序中创建了一个 Vcard(名片)。
mycontact.vcf.
我将那张卡存储在我的 phone 内存中。当我尝试打开该警告时,显示 mycontact.vcf 似乎不是有效的名片 (Vcard)。
当我在记事本中打开同一个文件时,数值数据会显示在那里。
我想在 windows 联系人中打开这个。
我的代码在这里。
var vcf = new StringBuilder();
vcf.Append("Category:" + currentcontact.title + System.Environment.NewLine);
StorageFolder folder = Windows.Storage.KnownFolders.PicturesLibrary;
StorageFile sampleFile = await folder.CreateFileAsync("mycontact.vcf", CreationCollisionOption.ReplaceExisting);
await Windows.Storage.FileIO.WriteTextAsync(sampleFile, vcf.ToString());
是不是创作有什么问题或者其他的。
我也附上屏幕截图。
非常感谢你的帮助。
你写的根本不是电子名片。
- 所有 vCard 文件必须以 "BEGIN:VCARD" 开头并以 "END:VCARD" 结尾。
- 所有 vCard 必须有版本 属性。
- "Category" 不是有效的 属性
我想这就是你想要的。
BEGIN:VCARD
VERSION:3.0
CATEGORIES:...
END:VCARD
我接受现金或信用卡。
我在 windows phone 8.1 应用程序中创建了一个 Vcard(名片)。 mycontact.vcf.
我将那张卡存储在我的 phone 内存中。当我尝试打开该警告时,显示 mycontact.vcf 似乎不是有效的名片 (Vcard)。
当我在记事本中打开同一个文件时,数值数据会显示在那里。 我想在 windows 联系人中打开这个。 我的代码在这里。
var vcf = new StringBuilder();
vcf.Append("Category:" + currentcontact.title + System.Environment.NewLine);
StorageFolder folder = Windows.Storage.KnownFolders.PicturesLibrary;
StorageFile sampleFile = await folder.CreateFileAsync("mycontact.vcf", CreationCollisionOption.ReplaceExisting);
await Windows.Storage.FileIO.WriteTextAsync(sampleFile, vcf.ToString());
是不是创作有什么问题或者其他的。
我也附上屏幕截图。
非常感谢你的帮助。
你写的根本不是电子名片。
- 所有 vCard 文件必须以 "BEGIN:VCARD" 开头并以 "END:VCARD" 结尾。
- 所有 vCard 必须有版本 属性。
- "Category" 不是有效的 属性
我想这就是你想要的。
BEGIN:VCARD
VERSION:3.0
CATEGORIES:...
END:VCARD
我接受现金或信用卡。