Partager via


IVsSingleFileGeneratorFactory.GetDefaultGenerator(String, String) Method

Definition

Gets the default generator prog ID for a specified file.

public:
 int GetDefaultGenerator(System::String ^ wszFilename, [Runtime::InteropServices::Out] System::String ^ % pbstrGenProgID);
int GetDefaultGenerator(std::wstring const & wszFilename, [Runtime::InteropServices::Out] std::wstring const & & pbstrGenProgID);
public int GetDefaultGenerator (string wszFilename, out string pbstrGenProgID);
abstract member GetDefaultGenerator : string * string -> int
Public Function GetDefaultGenerator (wszFilename As String, ByRef pbstrGenProgID As String) As Integer

Parameters

wszFilename
String

[in] The file for which to get the generator prog ID.

pbstrGenProgID
String

[out] The default generator prog ID.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT GetDefaultGenerator(  
   [in] LPCOLESTR wszFilename,   
   [out, retval] BSTR* pbstrGenProgID  
);  

Applies to