FederatedAuthentication.FederationConfigurationCreated 事件

定义

FederationConfiguration 属性由在 web 应用中的一个 HTTP 模块第一次访问时发生。Occurs when the FederationConfiguration property is accessed for the first time by one of the HTTP modules in the web application.

public:
 static event EventHandler<System::IdentityModel::Services::Configuration::FederationConfigurationCreatedEventArgs ^> ^ FederationConfigurationCreated;
public static event EventHandler<System.IdentityModel.Services.Configuration.FederationConfigurationCreatedEventArgs> FederationConfigurationCreated;
member this.FederationConfigurationCreated : EventHandler<System.IdentityModel.Services.Configuration.FederationConfigurationCreatedEventArgs> 
Public Shared Event FederationConfigurationCreated As EventHandler(Of FederationConfigurationCreatedEventArgs) 

注解

FederationConfigurationCreated web 应用程序中的第一个 HTTP 模块引用FederationConfiguration属性时,将引发事件。The FederationConfigurationCreated event is raised when the first HTTP module in the web application references FederationConfiguration property. 第一次访问此属性将导致FederationConfiguration从配置文件中的 <federationConfiguration> 元素创建和初始化对象。The first access of the this property causes a FederationConfiguration object to be created and initialized from the <federationConfiguration> element in the configuration file. 您可以通过事件处理程序FederationConfiguration中的FederationConfigurationCreatedEventArgs.FederationConfiguration属性访问新创建的对象,以便在用于为应用程序配置的任何 HTTP 模块提供初始化之前对其进行检查或修改。You can access the newly created FederationConfiguration object through the FederationConfigurationCreatedEventArgs.FederationConfiguration property in an event handler in order to examine or modify it before it is used to provide initialization for any of the HTTP modules configured for the application.

适用于