ServiceSecurityContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ServiceSecurityContext class.
Overloads
ServiceSecurityContext(ReadOnlyCollection<IAuthorizationPolicy>) |
Initializes a new instance of the ServiceSecurityContext class with the collection of policies object. |
ServiceSecurityContext(AuthorizationContext) |
Initializes a new instance of the ServiceSecurityContext class with the specified authorization parameters. |
ServiceSecurityContext(AuthorizationContext, ReadOnlyCollection<IAuthorizationPolicy>) |
Initializes a new instance of the ServiceSecurityContext class with the specified authorization parameters and collection of policies. |
ServiceSecurityContext(ReadOnlyCollection<IAuthorizationPolicy>)
- Source:
- ServiceSecurityContext.cs
Initializes a new instance of the ServiceSecurityContext class with the collection of policies object.
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))
Parameters
- authorizationPolicies
- ReadOnlyCollection<IAuthorizationPolicy>
A ReadOnlyCollection<T> of type IAuthorizationPolicy that contains the authorization policies.
Remarks
This constructor uses the default policy-chaining engine.
Applies to
ServiceSecurityContext(AuthorizationContext)
- Source:
- ServiceSecurityContext.cs
Initializes a new instance of the ServiceSecurityContext class with the specified authorization parameters.
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)
Parameters
- authorizationContext
- AuthorizationContext
An AuthorizationContext that contains authorization information.
Remarks
This constructor is typically used in scenarios where an application runs its own policy-chaining engine, which results in an AuthorizationContext. For the default policy engine, use the constructors that take a collection of IAuthorizationPolicy as parameter.
Applies to
ServiceSecurityContext(AuthorizationContext, ReadOnlyCollection<IAuthorizationPolicy>)
- Source:
- ServiceSecurityContext.cs
Initializes a new instance of the ServiceSecurityContext class with the specified authorization parameters and collection of policies.
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))
Parameters
- authorizationContext
- AuthorizationContext
An AuthorizationContext that contains authorization settings.
- authorizationPolicies
- ReadOnlyCollection<IAuthorizationPolicy>
A ReadOnlyCollection<T> of type IAuthorizationPolicy that contains the authorization policies.