コード例 #1
0
 internal XElement GetXElement()
 {
     return(new XElement("ConnectionDetail",
                         new XElement("AuthType", AuthType),
                         new XElement("ConnectionId", ConnectionId),
                         new XElement("ConnectionName", ConnectionName),
                         new XElement("ConnectionString", ConnectionString),
                         new XElement("UseConnectionString", UseConnectionString),
                         new XElement("IsCustomAuth", IsCustomAuth),
                         new XElement("UseIfd", UseIfd),
                         new XElement("UseOnline", UseOnline),
                         new XElement("UseOsdp", UseOsdp),
                         new XElement("UserDomain", UserDomain),
                         new XElement("UserName", UserName),
                         new XElement("UserPassword", SavePassword ? userPassword : string.Empty),
                         new XElement("SavePassword", SavePassword),
                         new XElement("UseSsl", UseSsl),
                         new XElement("ServerName", ServerName),
                         new XElement("ServerPort", ServerPort),
                         new XElement("OriginalUrl", OriginalUrl),
                         new XElement("Organization", Organization),
                         new XElement("OrganizationUrlName", OrganizationUrlName),
                         new XElement("OrganizationFriendlyName", OrganizationFriendlyName),
                         new XElement("OrganizationServiceUrl", OrganizationServiceUrl),
                         new XElement("OrganizationDataServiceUrl", OrganizationDataServiceUrl),
                         new XElement("OrganizationVersion", OrganizationVersion),
                         new XElement("HomeRealmUrl", HomeRealmUrl),
                         new XElement("Timeout", TimeoutTicks),
                         new XElement("WebApplicationUrl", WebApplicationUrl),
                         new XElement("LastUsedOn", LastUsedOn.ToString(CultureInfo.InvariantCulture.DateTimeFormat)),
                         GetCustomInfoXElement()));
 }
コード例 #2
0
 internal XElement GetXElement()
 {
     return(new XElement("ConnectionDetail",
                         new XElement("AuthType", AuthType),
                         new XElement("ConnectionId", ConnectionId),
                         new XElement("ConnectionName", ConnectionName),
                         new XElement("ConnectionString", ConnectionString),
                         new XElement("UseConnectionString", UseConnectionString),
                         new XElement("IsCustomAuth", IsCustomAuth),
                         new XElement("UseMfa", UseMfa), new XElement("UseIfd", UseIfd),
                         new XElement("UseOnline", UseOnline),
                         new XElement("UseOsdp", UseOsdp),
                         new XElement("UserDomain", UserDomain),
                         new XElement("UserName", UserName),
                         new XElement("UserPassword", SavePassword ? userPassword : string.Empty),
                         new XElement("SavePassword", SavePassword),
                         new XElement("UseSsl", UseSsl),
                         new XElement("AzureAdAppId", AzureAdAppId),
                         new XElement("ReplyUrl", ReplyUrl),
                         new XElement("UseIfd", UseIfd),
                         new XElement("ServerName", ServerName),
                         new XElement("ServerPort", ServerPort),
                         new XElement("OriginalUrl", OriginalUrl),
                         new XElement("Organization", Organization),
                         new XElement("OrganizationUrlName", OrganizationUrlName),
                         new XElement("OrganizationFriendlyName", OrganizationFriendlyName),
                         new XElement("OrganizationServiceUrl", OrganizationServiceUrl),
                         new XElement("OrganizationDataServiceUrl", OrganizationDataServiceUrl),
                         new XElement("OrganizationVersion", OrganizationVersion),
                         new XElement("HomeRealmUrl", HomeRealmUrl),
                         new XElement("Timeout", TimeoutTicks),
                         new XElement("WebApplicationUrl", WebApplicationUrl),
                         new XElement("IsEnvironmentHighlightSet", IsEnvironmentHighlightSet),
                         new XElement("EnvironmentText", EnvironmentText),
                         new XElement("EnvironmentColor", ColorTranslator.ToHtml(EnvironmentColor ?? Color.FromArgb(255, 255, 0, 255))),
                         new XElement("EnvironmentTextColor", ColorTranslator.ToHtml(EnvironmentTextColor ?? Color.FromArgb(255, 255, 255, 255))),
                         new XElement("LastUsedOn", LastUsedOn.ToString(CultureInfo.InvariantCulture.DateTimeFormat)),
                         GetCustomInfoXElement()));
 }