RuntimeState.SetValueT 方法 | |
Set a value for the state of the current Thread.
命名空间:
XSharp
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 STATIC METHOD SetValue<T>(
nSetting AS Set,
oValue AS T
)
AS T
public static T SetValue<T>(
Set nSetting,
T oValue
)
查看代码参数
- nSetting
- 类型:Set
Setting number to retrieve. Must be defined in the SET enum. - oValue
- 类型:T
The new value for the setting.
类型参数
- T
- The return type expected for this setting.
返回值
类型:
TThe previous value, or a default value of type T when the setting was not yetr defined.
参见