共用方式為


IPreferences.GetValue 方法

適用於版本2

傳回已提供索引鍵的喜好設定值。如果未設定值,則傳回 null。

命名空間:  Microsoft.WebMatrix.Extensibility
組件:  Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)

語法

'宣告
Function GetValue ( _
    key As String _
) As String
'用途
Dim instance As IPreferences 
Dim key As String 
Dim returnValue As String 

returnValue = instance.GetValue(key)
string GetValue(
    string key
)
String^ GetValue(
    String^ key
)
abstract GetValue : 
        key:string -> string
function GetValue(
    key : String
) : String

參數

傳回值

型別:System.String
喜好設定值。

請參閱

參考

IPreferences 介面

Microsoft.WebMatrix.Extensibility 命名空間