IVsTypeLibraryWrapper.GetMainWrapperFriendlyName Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetMainWrapperFriendlyName ( _
    pTypeLibToWrap As TLIBATTR(), _
    <OutAttribute> ByRef pbstrFilename As String _
) As Integer
int GetMainWrapperFriendlyName(
    TLIBATTR[] pTypeLibToWrap,
    out string pbstrFilename
)
int GetMainWrapperFriendlyName(
    [InAttribute] array<TLIBATTR>^ pTypeLibToWrap, 
    [OutAttribute] String^% pbstrFilename
)
abstract GetMainWrapperFriendlyName : 
        pTypeLibToWrap:TLIBATTR[] * 
        pbstrFilename:string byref -> int
function GetMainWrapperFriendlyName(
    pTypeLibToWrap : TLIBATTR[], 
    pbstrFilename : String
) : int

Parameters

  • pbstrFilename
    Type: String%

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

Return Value

Type: Int32
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
);

.NET Framework Security

See Also

Reference

IVsTypeLibraryWrapper Interface

Microsoft.VisualStudio.Shell.Interop Namespace