Partager via


IVsTypeLibraryWrapper.GetMainWrapperFilename(TLIBATTR[], String) Method

Definition

Gets the filename for a given type library.

public:
 int GetMainWrapperFilename(cli::array <Microsoft::VisualStudio::OLE::Interop::TLIBATTR> ^ pTypeLibToWrap, [Runtime::InteropServices::Out] System::String ^ % pbstrFilename);
int GetMainWrapperFilename(std::Array <Microsoft::VisualStudio::OLE::Interop::TLIBATTR> const & pTypeLibToWrap, [Runtime::InteropServices::Out] std::wstring const & & pbstrFilename);
public int GetMainWrapperFilename (Microsoft.VisualStudio.OLE.Interop.TLIBATTR[] pTypeLibToWrap, out string pbstrFilename);
abstract member GetMainWrapperFilename : Microsoft.VisualStudio.OLE.Interop.TLIBATTR[] * string -> int
Public Function GetMainWrapperFilename (pTypeLibToWrap As TLIBATTR(), ByRef pbstrFilename As String) As Integer

Parameters

pTypeLibToWrap
TLIBATTR[]

[in] Pointer to a type library to be wrapped.

pbstrFilename
String

[out] Pointer to a string containing the file name.

Returns

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

Remarks

COM Signature

From compsvcspkg.idl:

HRESULT IVsTypeLibraryWrapper::GetMainWrapperFilename(  
   [in] TLIBATTR* pTypeLibToWrap,  
   [out,retval] BSTR* pbstrFileName  
);  

This method is useful in establishing a standard convention for type library wrapper names. For example, all Tlbimp wrappers have "Interop" attached to their names.

Applies to