ExpansionFunction.GetDefaultValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取扩展函数的默认值。
重载
| GetDefaultValue(String, Int32) |
获取扩展函数的默认值。 |
| GetDefaultValue() |
获取扩展函数的默认值。 |
注解
扩展函数的默认值是从代码段模板文件获取的。 不需要为扩展函数指定默认值。
GetDefaultValue(String, Int32)
获取扩展函数的默认值。
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
参数
- bstrValue
- String
弄返回默认值(如果存在),否则返回空字符串。
- hasCurrentValue
- Int32
弄 true 如果不 bstrValue 为,则返回 null 。
返回
S_OK.
实现
适用于
GetDefaultValue()
获取扩展函数的默认值。
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
返回
默认值(如果存在); 否则为 null 。
注解
基方法返回通过调用方法返回的值 GetCurrentValue 。