コード例 #1
0
        // Token: 0x06000FC5 RID: 4037 RVA: 0x000627F4 File Offset: 0x000609F4
        public static OwaMiniRecipientIdentity CreateFromProxyAddress(string emailString)
        {
            if (emailString == null)
            {
                throw new ArgumentNullException("emailString");
            }
            ProxyAddress proxyAddress = null;

            try
            {
                proxyAddress = ProxyAddress.Parse(emailString);
            }
            catch (ArgumentNullException)
            {
                proxyAddress = null;
            }
            if (proxyAddress == null || proxyAddress.GetType() != typeof(SmtpProxyAddress))
            {
                throw new OwaExplicitLogonException(string.Format("{0} is not a valid SMTP address", emailString), string.Format(LocalizedStrings.GetNonEncoded(-13616305), emailString));
            }
            return(new OwaMiniRecipientIdentity(proxyAddress));
        }
コード例 #2
0
        // Token: 0x06000691 RID: 1681 RVA: 0x00013A84 File Offset: 0x00011C84
        public static OwaMiniRecipientIdentity CreateFromProxyAddress(string emailString)
        {
            if (emailString == null)
            {
                throw new ArgumentNullException("emailString");
            }
            ExTraceGlobals.CoreCallTracer.TraceDebug <string>(0L, "OwaMiniRecipientIdentity.CreateFromProxyAddress for emailString:{0}", emailString);
            ProxyAddress proxyAddress = null;

            try
            {
                proxyAddress = ProxyAddress.Parse(emailString);
            }
            catch (ArgumentNullException)
            {
                proxyAddress = null;
            }
            if (proxyAddress == null || proxyAddress.GetType() != typeof(SmtpProxyAddress))
            {
                throw new OwaExplicitLogonException(string.Format("{0} is not a valid SMTP address", emailString), string.Format(Strings.GetLocalizedString(-13616305), emailString));
            }
            return(new OwaMiniRecipientIdentity(proxyAddress));
        }