JsonRpc.GetJsonRpcMethodAttribute メソッド

定義

以前に検出された RPC メソッドの JsonRpcMethodAttribute を取得します (存在する場合)。

public StreamJsonRpc.JsonRpcMethodAttribute? GetJsonRpcMethodAttribute(string methodName, ReadOnlySpan<System.Reflection.ParameterInfo> parameters);
member this.GetJsonRpcMethodAttribute : string * ReadOnlySpan<System.Reflection.ParameterInfo> -> StreamJsonRpc.JsonRpcMethodAttribute
Public Function GetJsonRpcMethodAttribute (methodName As String, parameters As ReadOnlySpan(Of ParameterInfo)) As JsonRpcMethodAttribute

パラメーター

methodName
String

属性が検索されるメソッドの名前。

parameters
ReadOnlySpan<ParameterInfo>

TryGetTypedArguments(ReadOnlySpan<ParameterInfo>, Span<Object>)に渡される可能性があるため、メソッドで見つかったパラメーターの一覧。 この一覧では、末尾の CancellationTokenなど、いくつかの特別なパラメーターが省略される場合があることに注意してください。

返品

適用対象