IVsExpansionFunction.GetCurrentValue 메서드
확장 함수는 현재 값을 반환합니다.
네임스페이스: 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] 0이 아닌 반환 (true) 확장 함수 값이 현재 값입니다. 그렇지 않은 경우 0을 반환 (true). 설명 부분을 참조하십시오.
반환 값
형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.
설명
COM 시그니처
Textmgr2.idl에서:
bool IVsExpansionFunction::GetCurrentValue(
[out] BSTR *bstrValue,
[out] bool *fHasCurrentValue
);
이 메서드는 값을 반환 하는 경우이 삽입 된 코드 조각의 관련된 필드에 배치 됩니다. 이 메서드를 설정 하 여 표시 된 대로 값을 반환 하지 않는 경우 해당 fHasCurrentValue 매개 변수를 0으로 (false)가 현재 값을 반환 하는 확장 기능을 나타냅니다. fhasCurrentValue 매개 변수에 일반적으로 사용이 메서드는 호출자가 코드 조각에서 필드를 업데이트할 것인지 여부를 결정 합니다.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.