Прочетете на английски Редактиране

Споделяне чрез


DispatchRuntime.PrincipalPermissionMode Property

Definition

Gets or sets a value that specifies how the CurrentPrincipal property is set.

C#
public System.ServiceModel.Description.PrincipalPermissionMode PrincipalPermissionMode { get; set; }

Property Value

One of the PrincipalPermissionMode values; the default is UseWindowsGroups.

Remarks

When the PrincipalPermissionMode is None, the CurrentPrincipal property is not set.

When the value is UseWindowsGroups the CurrentPrincipal property is populated with a WindowsPrincipal based on the user credentials of the incoming message.

When the value is UseAspNetRoles the CurrentPrincipal property is populated with an IPrincipal object based on ASP.NET role information.

When the value is Custom the CurrentPrincipal property is populated by a custom IAuthorizationPolicy implementation.

Applies to

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1