IVsExpansionSession::SetFieldDefault Method (String^, String^)

 

Sets the default value for the specified field.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int SetFieldDefault(
	String^ bstrFieldName,
	String^ bstrNewValue
)

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::Int32

If 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.

Return to top
Show: