SoftBasicJsonSetValueT 方法 |
一个泛型方法,提供json对象的数据写入
A generic method that provides data writing to a JSON object
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.0.0 (12.1.0.0)
语法public static void JsonSetValue<T>(
JObject json,
string property,
T value
)
Public Shared Sub JsonSetValue(Of T) (
json As JObject,
property As String,
value As T
)
public:
generic<typename T>
static void JsonSetValue(
JObject^ json,
String^ property,
T value
)
static member JsonSetValue :
json : JObject *
property : string *
value : 'T -> unit
参数
- json
- 类型:JObject
json对象 - property
- 类型:SystemString
值名称 - value
- 类型:T
值数据
类型参数
- T
- 写入的泛型
示例JObject json = new JObject( );
json.Add( "A", new JValue( "Abcdea234a" ) );
SoftBasic.JsonSetValue( json, "B", "1234" );
参见