CanvasControlLibrary.Areas.HelpPage.HelpPageConfigurationExtensions.SetActualResponseType C# (CSharp) Метод

SetActualResponseType() публичный статический Метод

Specifies the actual type of System.Net.Http.ObjectContent{T} returned as part of the System.Net.Http.HttpRequestMessage in an action. The help page will use this information to produce more accurate response samples.
public static SetActualResponseType ( this config, Type type, string controllerName, string actionName ) : void
config this The .
type System.Type The type.
controllerName string Name of the controller.
actionName string Name of the action.
Результат void
        public static void SetActualResponseType(this HttpConfiguration config, Type type, string controllerName, string actionName)
        {
            config.GetHelpPageSampleGenerator().ActualHttpMessageTypes.Add(new HelpPageSampleKey(SampleDirection.Response, controllerName, actionName, new[] { "*" }), type);
        }