Partager via


IVsWritableSettingsStore.GetStringOrDefault Method (String, String, String, String%)

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

Syntax

'Déclaration
Function GetStringOrDefault ( _
    collectionPath As String, _
    propertyName As String, _
    defaultValue As String, _
    <OutAttribute> ByRef value As String _
) As Integer
'Utilisation
Dim instance As IVsWritableSettingsStore
Dim collectionPath As String
Dim propertyName As String
Dim defaultValue As String
Dim value As String
Dim returnValue As Integer

returnValue = instance.GetStringOrDefault(collectionPath, _
    propertyName, defaultValue, value)
int GetStringOrDefault(
    string collectionPath,
    string propertyName,
    string defaultValue,
    out string value
)
int GetStringOrDefault(
    [InAttribute] String^ collectionPath, 
    [InAttribute] String^ propertyName, 
    [InAttribute] String^ defaultValue, 
    [OutAttribute] String^% value
)
abstract GetStringOrDefault : 
        collectionPath:string * 
        propertyName:string * 
        defaultValue:string * 
        value:string byref -> int 
function GetStringOrDefault(
    collectionPath : String, 
    propertyName : String, 
    defaultValue : String, 
    value : String
) : int

Parameters

Return Value

Type: System.Int32

Implements

IVsSettingsStore.GetStringOrDefault(String, String, String, String%)

.NET Framework Security

See Also

Reference

IVsWritableSettingsStore Interface

IVsWritableSettingsStore Members

GetStringOrDefault Overload

Microsoft.VisualStudio.Shell.Interop Namespace