Compartir a través de


IVsTypeLibraryWrapper.GetMainWrapperFriendlyName(TLIBATTR[], String) Method

Definition

Gets the name that is displayed in the project system when the component is referred to.

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

Parameters

pTypeLibToWrap
TLIBATTR[]

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

pbstrFilename
String

[out] Pointer to a string containing the friendly 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:  
[C++]  
HRESULT IVsTypeLibraryWrapper::GetMainWrapperFriendlyName(  
   [in] TLIBATTR* pTypeLibToWrap,  
   [out,retval] BSTR* pbstrFileName  
);  

Applies to