适用于版本2
在存储中设置值。如果有值,则将覆盖现有值。
命名空间: Microsoft.WebMatrix.Extensibility
程序集: Microsoft.WebMatrix.Extensibility(在 Microsoft.WebMatrix.Extensibility.dll 中)
语法
声明
Sub SetValue ( _
key As String, _
value As String _
)
用法
Dim instance As IPreferences
Dim key As String
Dim value As String
instance.SetValue(key, value)
void SetValue(
string key,
string value
)
void SetValue(
String^ key,
String^ value
)
abstract SetValue :
key:string *
value:string -> unit
function SetValue(
key : String,
value : String
)
参数
key
类型:System.String首选项键。
value
类型:System.String值。