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

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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