Gets or sets the allowed impersonation level.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
This property specifies the impersonation level granted by the client to the server when using Windows SSPI Negotiate authentication. Note that the impersonation level obtained by the server when it impersonates the client token is not solely a function of this setting. It is also a function of the associated privileges and domain settings for the account in which the service is running.
The client must explicitly set the allowed impersonation level using this property.
When the client specifies anonymous impersonation the client always authenticates to the service as anonymous even when no impersonation is performed on the service. This is due to underlying Windows operating system behavior.
For more information about Windows impersonation, go to Impersonating and Reverting. For more information about impersonation using Windows Communication Foundation (WCF), see Delegation and Impersonation with WCF.
Available since 8
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms