Skip to main content
All docs
V24.1
.NET 6.0+
  • The page you are viewing does not exist in the .NET Framework 4.5.2+ platform documentation. This link will take you to the parent topic of the current section.

WebApiDataServerHelper.AddKnownType(Type) Method

Adds the specified custom permission request or custom logon parameter type to the ASP.NET Core Web API service known types list.

Namespace: DevExpress.ExpressApp.Security.ClientServer.WebApi

Assembly: DevExpress.ExpressApp.Security.v24.1.dll

NuGet Package: DevExpress.ExpressApp.Security

Declaration

public static void AddKnownType(
    Type type
)

Parameters

Name Type Description
type Type

A type that this method adds to the ASP.NET Core Web API service known types list.

Remarks

In applications with Middle Tier Security, call this method on the server and client sides to register your custom permission requests and custom logon parameters. You do not need to use this method when you use standard logon parameters and do not have custom permission requests. Do not use this method to register business classes.

The AddKnownType method throws an InvalidOperationException if the WebApiDataServerHelper.GetKnownTypes method was already called internally. If you receive this exception, call this method earlier, before the data server and/or client application are initialized.

See Also