ServiceSecurityContext 构造函数

定义

初始化 ServiceSecurityContext 类的新实例。

重载

ServiceSecurityContext(ReadOnlyCollection<IAuthorizationPolicy>)

使用策略对象集合初始化 ServiceSecurityContext 类的新实例。

ServiceSecurityContext(AuthorizationContext)

使用指定的授权参数初始化 ServiceSecurityContext 类的新实例。

ServiceSecurityContext(AuthorizationContext, ReadOnlyCollection<IAuthorizationPolicy>)

使用指定的授权参数和策略集合初始化 ServiceSecurityContext 类的新实例。

ServiceSecurityContext(ReadOnlyCollection<IAuthorizationPolicy>)

Source:
ServiceSecurityContext.cs
Source:
ServiceSecurityContext.cs
Source:
ServiceSecurityContext.cs

使用策略对象集合初始化 ServiceSecurityContext 类的新实例。

public:
 ServiceSecurityContext(System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ authorizationPolicies);
public ServiceSecurityContext (System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> authorizationPolicies);
new System.ServiceModel.ServiceSecurityContext : System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> -> System.ServiceModel.ServiceSecurityContext
Public Sub New (authorizationPolicies As ReadOnlyCollection(Of IAuthorizationPolicy))

参数

authorizationPolicies
ReadOnlyCollection<IAuthorizationPolicy>

一个包含授权策略的类型为 IAuthorizationPolicyReadOnlyCollection<T>

注解

此构造函数使用默认的链式策略引擎。

适用于

ServiceSecurityContext(AuthorizationContext)

Source:
ServiceSecurityContext.cs
Source:
ServiceSecurityContext.cs
Source:
ServiceSecurityContext.cs

使用指定的授权参数初始化 ServiceSecurityContext 类的新实例。

public:
 ServiceSecurityContext(System::IdentityModel::Policy::AuthorizationContext ^ authorizationContext);
public ServiceSecurityContext (System.IdentityModel.Policy.AuthorizationContext authorizationContext);
new System.ServiceModel.ServiceSecurityContext : System.IdentityModel.Policy.AuthorizationContext -> System.ServiceModel.ServiceSecurityContext
Public Sub New (authorizationContext As AuthorizationContext)

参数

authorizationContext
AuthorizationContext

一个包含授权信息的 AuthorizationContext

注解

此构造函数通常在应用程序运行自己的链式策略引擎的情况下使用,从而生成 AuthorizationContext。 对于默认策略引擎,请使用将 IAuthorizationPolicy 集合作为参数的构造函数。

适用于

ServiceSecurityContext(AuthorizationContext, ReadOnlyCollection<IAuthorizationPolicy>)

Source:
ServiceSecurityContext.cs
Source:
ServiceSecurityContext.cs
Source:
ServiceSecurityContext.cs

使用指定的授权参数和策略集合初始化 ServiceSecurityContext 类的新实例。

public:
 ServiceSecurityContext(System::IdentityModel::Policy::AuthorizationContext ^ authorizationContext, System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ authorizationPolicies);
public ServiceSecurityContext (System.IdentityModel.Policy.AuthorizationContext authorizationContext, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> authorizationPolicies);
new System.ServiceModel.ServiceSecurityContext : System.IdentityModel.Policy.AuthorizationContext * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> -> System.ServiceModel.ServiceSecurityContext
Public Sub New (authorizationContext As AuthorizationContext, authorizationPolicies As ReadOnlyCollection(Of IAuthorizationPolicy))

参数

authorizationContext
AuthorizationContext

一个包含授权设置的 AuthorizationContext

authorizationPolicies
ReadOnlyCollection<IAuthorizationPolicy>

一个包含授权策略的类型为 IAuthorizationPolicyReadOnlyCollection<T>

适用于