Sdílet prostřednictvím


ExpansionFunction.GetDefaultValue Method

Definition

Gets the default value for the expansion function.

Overloads

GetDefaultValue(String, Int32)

Gets the default value of the expansion function.

GetDefaultValue()

Gets the default value of the expansion function.

Remarks

The default value for an expansion function is obtained from the code snippet template file. A default does not have to be specified for an expansion function.

GetDefaultValue(String, Int32)

Gets the default value of the expansion function.

public:
 virtual int GetDefaultValue([Runtime::InteropServices::Out] System::String ^ % bstrValue, [Runtime::InteropServices::Out] int % hasCurrentValue);
public int GetDefaultValue (out string bstrValue, out int hasCurrentValue);
abstract member GetDefaultValue : string * int -> int
override this.GetDefaultValue : string * int -> int
Public Function GetDefaultValue (ByRef bstrValue As String, ByRef hasCurrentValue As Integer) As Integer

Parameters

bstrValue
String

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

hasCurrentValue
Int32

[out] Returns true if bstrValue is not null.

Returns

S_OK.

Implements

Applies to

GetDefaultValue()

Gets the default value of the expansion function.

public:
 virtual System::String ^ GetDefaultValue();
public:
 virtual Platform::String ^ GetDefaultValue();
 virtual std::wstring GetDefaultValue();
public virtual string GetDefaultValue ();
abstract member GetDefaultValue : unit -> string
override this.GetDefaultValue : unit -> string
Public Overridable Function GetDefaultValue () As String

Returns

The default value, if it exists, otherwise null.

Remarks

The base method returns the value returned from a call to the GetCurrentValue method.

Applies to