ServiceConfiguration.Initialize 方法

Updates properties in the T:Microsoft.IdentityModel.Tokens.SecurityTokenHandlerConfiguration objects for the T:Microsoft.IdentityModel.Tokens.SecurityTokenHandlerCollection objects contained in P:Microsoft.IdentityModel.Configuration.ServiceConfiguration.SecurityTokenHandlerCollectionManager to be consistent with the property values on this T:Microsoft.IdentityModel.Configuration.ServiceConfiguration instance.

命名空间: Microsoft.IdentityModel.Configuration
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)

用法

    Dim instance As ServiceConfiguration

instance.Initialize

语法

声明
Public Overridable Sub Initialize
public virtual void Initialize ()
public:
virtual void Initialize ()
public void Initialize ()
public function Initialize ()

异常

异常类型 条件

备注

This method should be invoked prior to using token handlers for token processing. M:Microsoft.IdentityModel.Tokens.FederatedServiceCredentials.ConfigureServiceHost(System.ServiceModel.ServiceHostBase) calls this method. P:Microsoft.IdentityModel.Web.FederatedAuthentication.ServiceConfiguration calls this method after raising the E:Microsoft.IdentityModel.Web.FederatedAuthentication.ServiceConfigurationCreated event.

线程安全

此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。

平台

开发平台

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

请参见

参考

ServiceConfiguration 类
ServiceConfiguration 成员
Microsoft.IdentityModel.Configuration 命名空间