Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Studio SDK
 DefaultExtension Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio SDK
IVsSingleFileGenerator..::.DefaultExtension Method

Updated: November 2007

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)

Visual Basic (Declaration)
Function DefaultExtension ( _
    <OutAttribute> ByRef pbstrDefaultExtension As String _
) As Integer
Visual Basic (Usage)
Dim instance As IVsSingleFileGenerator
Dim pbstrDefaultExtension As String
Dim returnValue As Integer

returnValue = instance.DefaultExtension(pbstrDefaultExtension)
C#
int DefaultExtension(
    out string pbstrDefaultExtension
)
Visual C++
int DefaultExtension(
    [OutAttribute] String^% pbstrDefaultExtension
)
JScript
function DefaultExtension(
    pbstrDefaultExtension : String
) : int

Parameters

pbstrDefaultExtension
Type: System..::.String%

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

Return Value

Type: System..::.Int32

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.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker