This documentation is archived and is not being maintained.

ServiceAuthorizationBehavior.ExternalAuthorizationPolicies Property

Gets or sets a collection of external authorization policies.

Namespace:  System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public ReadOnlyCollection<IAuthorizationPolicy> ExternalAuthorizationPolicies { get; set; }


Behavior is read-only.

The external authorization policies participate in the policy evaluation process resulting in a user ServiceSecurityContext.

The following code shows how to set this property to use a set of external authorization policies.

ServiceHost myServiceHost = new ServiceHost(typeof(Calculator), baseUri);
ServiceAuthorizationBehavior myServiceBehavior =
myServiceBehavior.PrincipalPermissionMode =
MyServiceAuthorizationManager sm = new MyServiceAuthorizationManager();
myServiceBehavior.ServiceAuthorizationManager = sm;

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0