FormatterBase.JsonRpcResultBase.TrySetTopLevelProperty<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets a top-level property in the message that is an extension to JSON-RPC specification.
public override bool TrySetTopLevelProperty<T>(string name, T value);
override this.TrySetTopLevelProperty : string * 'T -> bool
Public Overrides Function TrySetTopLevelProperty(Of T) (name As String, value As T) As Boolean
Type Parameters
- T
The type of value to be serialized.
Parameters
- name
- String
The name of the property. This should not collide with any property defined by the JSON-RPC specification.
- value
- T
The value for the property.
Returns
true if the formatter supports setting top-level properties;
false otherwise.