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

‘선언
Function GetMainWrapperFriendlyName ( _
    pTypeLibToWrap As TLIBATTR(), _
    <OutAttribute> ByRef pbstrFilename As String _
) As Integer
‘사용 방법
Dim instance As IVsTypeLibraryWrapper
Dim pTypeLibToWrap As TLIBATTR()
Dim pbstrFilename As String
Dim returnValue As Integer

returnValue = instance.GetMainWrapperFriendlyName(pTypeLibToWrap, _
    pbstrFilename)
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: System.String%
    [out] Pointer to a string containing the friendly file name.

Return Value

Type: System.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

IVsTypeLibraryWrapper Members

Microsoft.VisualStudio.Shell.Interop Namespace