IVsExpansionSession::SetFieldDefault Method (String^, String^)
Visual Studio 2015
Sets the default value for the specified field.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Parameters
- bstrFieldName
-
Type:
System::String^
[in] A string containing the name of the field.
- bstrNewValue
-
Type:
System::String^
[in] A string containing the default value to use.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr2.idl:
HRESULT IVsExpansionSession::SetFieldDefault( [in] BSTR bstrFieldName, [in] BSTR bstrNewValue );
Typically, a code snippet specifies default values for all fields. This method is used to override the default value for a specified field.
Show: