Exemplo n.º 1
0
 public static bool TryGetErrorAssistanceUrl(LocalizedException exception, out Uri helpUrl)
 {
     helpUrl = null;
     if (!HelpProvider.ShouldConstructHelpUrlForException(exception))
     {
         return(false);
     }
     helpUrl = HelpProvider.UrlConstructHelper("ms.exch.err.default", new string[]
     {
         HelpProvider.GetErrorParam(exception),
         HelpProvider.GetLoginInfo()
     });
     return(true);
 }
Exemplo n.º 2
0
 internal static bool TryGetErrorAssistanceUrl(LocalizedException exception, OrganizationProperties organizationProperties, out Uri helpUrl)
 {
     helpUrl = null;
     if (!HelpProvider.ShouldConstructHelpUrlForException(exception))
     {
         return(false);
     }
     helpUrl = HelpProvider.UrlConstructHelper("ms.exch.err.default", new string[]
     {
         HelpProvider.GetErrorParam(exception),
         HelpProvider.GetLoginInfo(),
         (organizationProperties == null) ? string.Empty : HelpProvider.ConstructServicePlanInfo(organizationProperties.ServicePlan)
     });
     return(true);
 }
Exemplo n.º 3
0
 internal static bool TryGetErrorAssistanceUrl(LocalizedException exception, ExchangeRunspaceConfiguration rbacConfiguration, out Uri helpUrl)
 {
     helpUrl = null;
     if (!HelpProvider.ShouldConstructHelpUrlForException(exception))
     {
         return(false);
     }
     helpUrl = HelpProvider.UrlConstructHelper("ms.exch.err.default", new string[]
     {
         HelpProvider.GetErrorParam(exception),
         HelpProvider.GetLoginInfo(),
         HelpProvider.GetServicePlanInfo(rbacConfiguration)
     });
     return(true);
 }