Live SDK for .NET を使用して Outlook のカスタム カレンダーに enevt を追加するにはどうすればよいですか? ドキュメントでは、カスタムではなくデフォルトのカレンダーにのみイベントを追加します。
private async void btnCreateEvent_Click(object sender, RoutedEventArgs e)
{
try
{
var calEvent = new Dictionary<string, object>();
calEvent.Add("name", "Family Dinner");
calEvent.Add("description", "Dinner with Cynthia's family");
calEvent.Add("start_time", "2012-04-07T01:30:00-08:00");
calEvent.Add("end_time", "2012-04-07T03:00:00-08:00");
calEvent.Add("location", "Coho Vineyard and Winery, 123 Main St., Redmond WA 19532");
calEvent.Add("is_all_day_event", false);
calEvent.Add("availability", "busy");
calEvent.Add("visibility", "public");
LiveConnectClient liveClient = new LiveConnectClient(this.session);
LiveOperationResult operationResult = await liveClient.PostAsync("me/events", calEvent);
dynamic result = operationResult.Result;
this.infoTextBlock.Text = string.Join(" ", "Created event:", result.name, "ID:", result.id);
}
catch (LiveConnectException exception)
{
this.infoTextBlock.Text = "Error creating event: " + exception.Message;
}
}
パス「me/events」をカレンダー ID に置き換えようとしましたが、うまくいきません。