BaseCodeGenerator.DefaultExtension Method (String)

 

Implements the IVsSingleFileGenerator.DefaultExtension method. Returns the extension of the generated file

Namespace:   Microsoft.Data.Entity.Design.VisualStudio.SingleFileGenerator
Assembly:  Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)

[SuppressMessageAttribute("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
public int DefaultExtension(
	out string pbstrDefaultExtension
)

Parameters

pbstrDefaultExtension
Type: System.String

Out parameter, will hold the extension that is to be given to the output file name. The returned extension must include a leading period

Return Value

Type: System.Int32

S_OK if successful, E_FAIL if not