ExpansionFunction.GetCurrentValue Method (String%, Int32%)

Gets the current value of the expansion function.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Function GetCurrentValue ( _
    <OutAttribute> ByRef bstrValue As String, _
    <OutAttribute> ByRef hasDefaultValue As Integer _
) As Integer
public int GetCurrentValue(
    out string bstrValue,
    out int hasDefaultValue
)
public:
virtual int GetCurrentValue(
    [OutAttribute] String^% bstrValue, 
    [OutAttribute] int% hasDefaultValue
) sealed
abstract GetCurrentValue : 
        bstrValue:string byref * 
        hasDefaultValue:int byref -> int  
override GetCurrentValue : 
        bstrValue:string byref * 
        hasDefaultValue:int byref -> int
public final function GetCurrentValue(
    bstrValue : String, 
    hasDefaultValue : int
) : int

Parameters

  • bstrValue
    Type: String%

    [out] Returns the value, if it exists, otherwise an empty string.

  • hasDefaultValue
    Type: Int32%

    [out] Returns true if bstrValue is not nulla null reference (Nothing in Visual Basic).

Return Value

Type: Int32
S_OK .

Implements

IVsExpansionFunction.GetCurrentValue(String%, Int32%)

.NET Framework Security

See Also

Reference

ExpansionFunction Class

GetCurrentValue Overload

Microsoft.VisualStudio.Package Namespace