Partager via


IVsSettingsStorageContainer.GetValue Method

Gets a value for the specified key.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)

Syntax

'Declaration
Function GetValue ( _
    key As String _
) As String
string GetValue(
    string key
)
String^ GetValue(
    [InAttribute] String^ key
)
abstract GetValue : 
        key:string -> string
function GetValue(
    key : String
) : String

Parameters

  • key
    Type: String

    The key.

Return Value

Type: String
The value.

Remarks

GetValue and GetMultiKeyValue return E_INVALIDARG if there is no map entry with the given key name or if the name identifies a subcollection rather than a string. GetValue only searches values at the top level (not in subcollections).

.NET Framework Security

See Also

Reference

IVsSettingsStorageContainer Interface

Microsoft.VisualStudio.Shell.Interop Namespace