IVsTypeLibraryWrapper.GetMainWrapperFilename(TLIBATTR[], String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le nom de fichier d'une bibliothèque de types donnée.
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
Paramètres
- pTypeLibToWrap
- TLIBATTR[]
[in] Pointeur vers une bibliothèque de types à encapsuler.
- pbstrFilename
- String
[out] Pointeur vers une chaîne contenant le nom du fichier.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Signature COM
À partir de compsvcspkg. idl :
HRESULT IVsTypeLibraryWrapper::GetMainWrapperFilename(
[in] TLIBATTR* pTypeLibToWrap,
[out,retval] BSTR* pbstrFileName
);
Cette méthode est utile pour établir une convention standard pour les noms de wrapper de bibliothèque de types. Par exemple, tous les wrappers Tlbimp ont un « Interop » attaché à leurs noms.