Udostępnij za pośrednictwem


ExpansionFunction.GetDefaultValue Method (String%, Int32%)

Gets the default value of the expansion function.

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

Syntax

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

Parameters

  • bstrValue
    Type: System.String%
    [out] Returns the default value if it exists, otherwise returns an empty string.
  • hasCurrentValue
    Type: System.Int32%
    [out] Returns true if bstrValue is not nulla null reference (Nothing in Visual Basic).

Return Value

Type: System.Int32
S_OK .

Implements

IVsExpansionFunction.GetDefaultValue(String%, Int32%)

.NET Framework Security

See Also

Reference

ExpansionFunction Class

GetDefaultValue Overload

Microsoft.VisualStudio.Package Namespace