JsonRpc.GetJsonRpcMethodAttribute 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果有之前發現的 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。