返回扩展功能的当前值。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function GetCurrentValue ( _
<OutAttribute> ByRef bstrValue As String, _
<OutAttribute> ByRef fHasCurrentValue As Integer _
) As Integer
int GetCurrentValue(
out string bstrValue,
out int fHasCurrentValue
)
int GetCurrentValue(
[OutAttribute] String^% bstrValue,
[OutAttribute] int% fHasCurrentValue
)
abstract GetCurrentValue :
bstrValue:string byref *
fHasCurrentValue:int byref -> int
function GetCurrentValue(
bstrValue : String,
fHasCurrentValue : int
) : int
参数
bstrValue
类型:String%[out] 返回包含外接函数值的字符串。
fHasCurrentValue
类型:Int32%[out] 返回非零 (true),如果外接函数具有一个当前值;否则,返回零 (0)true)。 请参见"备注"。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr2.idl:
bool IVsExpansionFunction::GetCurrentValue(
[out] BSTR *bstrValue,
[out] bool *fHasCurrentValue
);
如果此方法返回一个值,则将被放入插入的代码段的关联的字段。 如果此方法不返回值,这由设置 fHasCurrentValue 参数设置为零 (false),展开功能指示它没有返回的当前值。 fhasCurrentValue 参数是由此方法的调用方通常用于确定更新在代码段的字段。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。