ServiceAuthorizationBehavior Constructor

Definitie

Initialiseert een nieuw exemplaar van de ServiceAuthorizationBehavior klasse.

public:
 ServiceAuthorizationBehavior();
public ServiceAuthorizationBehavior();
Public Sub New ()

Voorbeelden

De volgende code laat zien hoe u een exemplaar van deze klasse ophaalt.

// Code to create a ServiceHost not shown.
ServiceAuthorizationBehavior MyServiceAuthoriationBehavior =
    serviceHost.Description.Behaviors.Find<ServiceAuthorizationBehavior>();
MyServiceAuthoriationBehavior.ImpersonateCallerForAllOperations = true;
' Code to create a ServiceHost not shown.
Dim MyServiceAuthoriationBehavior As ServiceAuthorizationBehavior 
MyServiceAuthoriationBehavior= serviceHost.Description.Behaviors.Find _
(Of ServiceAuthorizationBehavior)()
MyServiceAuthoriationBehavior.ImpersonateCallerForAllOperations = True

Opmerkingen

Normaal gesproken roepen toepassingen de constructor niet rechtstreeks aan. In plaats daarvan halen ze een exemplaar van deze klasse op door aan te roepen ServiceHostBase.Description.Behaviors.Find<ServiceAuthorizationBehavior>.

Van toepassing op