This topic has not yet been rated - Rate this topic

IVsSingleFileGenerator.DefaultExtension Method

Retrieves the file extension that is given to the output file name.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int DefaultExtension (
	out string pbstrDefaultExtension
)
int DefaultExtension (
	/** @attribute OutAttribute() */ /** @ref */ String pbstrDefaultExtension
)
JScript does not support passing value-type arguments by reference.

Parameters

pbstrDefaultExtension

[out, retval] Returns the file extension that is to be given to the output file name. The returned extension must include a leading period.

The project system invokes DefaultExtension in order to determine what extension to give to the generated output file.

The project system creates the file name of the generated file by:

  • Stripping the extension of the input file.

  • Appending the extension obtained from DefaultExtension.

  • Making the file name unique, if necessary.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ