Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OnActionExecuting をオーバーライドして、クライアントが送信したパラメーターの型と必要なアクションのパラメーターの型を一致させるときに、アクション引数の署名を取得することは可能ですか?
はい、最初に filterContext.ActionParameters.ContainsKey("myParameter") で名前を確認し、次に "as" キーワードを使用してタイプと一致するかどうかを確認します。