SecurityElementBase.AddBindingTemplate 方法

定义

将指定的配置模板应用到此实例。

protected:
 void AddBindingTemplate(System::Collections::Generic::Dictionary<System::ServiceModel::Configuration::AuthenticationMode, System::ServiceModel::Channels::SecurityBindingElement ^> ^ bindingTemplates, System::ServiceModel::Configuration::AuthenticationMode mode);
protected void AddBindingTemplate (System.Collections.Generic.Dictionary<System.ServiceModel.Configuration.AuthenticationMode,System.ServiceModel.Channels.SecurityBindingElement> bindingTemplates, System.ServiceModel.Configuration.AuthenticationMode mode);
member this.AddBindingTemplate : System.Collections.Generic.Dictionary<System.ServiceModel.Configuration.AuthenticationMode, System.ServiceModel.Channels.SecurityBindingElement> * System.ServiceModel.Configuration.AuthenticationMode -> unit
Protected Sub AddBindingTemplate (bindingTemplates As Dictionary(Of AuthenticationMode, SecurityBindingElement), mode As AuthenticationMode)

参数

bindingTemplates
Dictionary<AuthenticationMode,SecurityBindingElement>

由一种身份验证模式和一个绑定元素组成的对。

mode
AuthenticationMode

用于消息交换的身份验证模式。

适用于