在web api中查询字符串Q格式 [英] query string Q format in web api

查看:110
本文介绍了在web api中查询字符串Q格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是.net的新手。在下列情况下,请帮助我。我必须使用WEB API 工作。我必须传递查询字符串Q格式。并从中提取数据。



我不知道查询字符串的Q格式是什么以及如何从中提取数据。





Q格式

这样的东西int q = order-id:foo








控制器代码。

[httpget]



public void get(int q = order-id:foo){



//我想在这里取foo值



}




请帮帮我...

I Am new to .net Can U please help me in the following scenario.. I have to work with WEB API. I have to pass the query string Q format. And to extract the data from them.

I don't know What is Q format for Query String and how to extract data from them.


Q format
something like this int q=order-id:foo




controller code .
[httpget]

public void get (int q=order-id:foo){

// i want take the foo value here

}


please help me...

推荐答案

这篇关于在web api中查询字符串Q格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆