本文整理汇总了C#中Store.GetCollectionByID方法的典型用法代码示例。如果您正苦于以下问题:C# Store.GetCollectionByID方法的具体用法?C# Store.GetCollectionByID怎么用?C# Store.GetCollectionByID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Store
的用法示例。
在下文中一共展示了Store.GetCollectionByID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InvitationWizard_Load
private void InvitationWizard_Load(object sender, System.EventArgs e)
{
store = Store.GetStore();
if (subscriptionMode)
{
poBox = POBox.GetPOBox(store, domainID);
Node node = poBox.GetNodeByID(subscriptionID);
subscription = new Subscription(node);
}
else if (this.invitationFile != "")
{
try
{
subscription = Subscription.GetSubscriptionFromSubscriptionInfo(store, invitationFile);
if (store.GetCollectionByID(subscription.SubscriptionCollectionID) != null)
{
MessageBox.Show("The collection for the selected subscription already exists.", "Shared Collection Exists");
subscription = null;
invitationFile = "";
}
}
catch (SimiasException ex)
{
ex.LogError();
MessageBox.Show("An invalid Collection Subscription Information file was specified on the command-line. Please see the log file for additional information.\n\n" + this.invitationFile, "Invalid File", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
invitationFile = "";
}
catch (Exception ex)
{
logger.Debug(ex, "Invalid file");
MessageBox.Show("An invalid Collection Subscription Information file was specified on the command-line. Please see the log file for additional information.\n\n" + this.invitationFile, "Invalid File", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
invitationFile = "";
}
}
}