ServiceAuthorizationBehavior Constructor
Collapse the table of content
Expand the table of content

ServiceAuthorizationBehavior Constructor

Initializes a new instance of the ServiceAuthorizationBehavior class.

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

public ServiceAuthorizationBehavior()

Typically, applications do not call the constructor directly. Instead they retrieve an instance of this class by calling ServiceHostBase.Description.Behaviors.Find<ServiceAuthorizationBehavior>.

The following code shows how to retrieve an instance of this class.

// Code to create a ServiceHost not shown.
ServiceAuthorizationBehavior MyServiceAuthoriationBehavior = 
MyServiceAuthoriationBehavior.ImpersonateCallerForAllOperations = true;

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

Community Additions

© 2016 Microsoft