IVsExpansionSession.GetFieldValue Method
Retrieves the value of the specified field.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
声明
Function GetFieldValue ( _
bstrFieldName As String, _
<OutAttribute> ByRef pbstrValue As String _
) As Integer
用法
Dim instance As IVsExpansionSession
Dim bstrFieldName As String
Dim pbstrValue As String
Dim returnValue As Integer
returnValue = instance.GetFieldValue(bstrFieldName, _
pbstrValue)
int GetFieldValue(
string bstrFieldName,
out string pbstrValue
)
int GetFieldValue(
[InAttribute] String^ bstrFieldName,
[OutAttribute] String^% pbstrValue
)
abstract GetFieldValue :
bstrFieldName:string *
pbstrValue:string byref -> int
function GetFieldValue(
bstrFieldName : String,
pbstrValue : String
) : int
Parameters
- bstrFieldName
Type: System.String
[in] A string containing the name of the field.
- pbstrValue
Type: System.String%
[out] Returns a string containing the value of the field.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr2.idl:
HRESULT IVsExpansionSession::GetFieldValue(
[in]BSTR bstrFieldName,
[out]BSTR *pbstrValue
);
The value returned is the current value of the field.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.