public UMCallAnsweringRule(UMCallAnsweringRuleId identity) : base(new SimpleProviderPropertyBag()) { if (identity == null) { throw new ArgumentNullException("identity"); } this.propertyBag.SetField(SimpleProviderObjectSchema.Identity, identity); }
public UMCallAnsweringRuleIdParameter(UMCallAnsweringRuleId ruleId) { if (ruleId == null) { throw new ArgumentNullException("ruleId"); } ((IIdentityParameter)this).Initialize(ruleId); this.rawInput = ruleId.ToString(); }
public static Identity ToIdentity(this UMCallAnsweringRuleId id) { Guid ruleIdGuid = id.RuleIdGuid; if (id.MailboxOwnerId != null) { return(new Identity(id.RuleIdGuid.ToString(), id.RuleIdGuid.ToString())); } return(id.ToIdentity(id.RuleIdGuid.ToString())); }