Поделиться через


IVsTypeLibraryWrapperCallback.GetAssembly Method

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

Returns a path to an assembly if the assembly is referenced. If the assembly is not referenced, returns an error code.

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

Syntax

'Declaration
Function GetAssembly ( _
    wszFusionName As String, _
    <OutAttribute> ByRef pbstrPath As String _
) As Integer
int GetAssembly(
    string wszFusionName,
    out string pbstrPath
)
int GetAssembly(
    [InAttribute] String^ wszFusionName, 
    [OutAttribute] String^% pbstrPath
)
abstract GetAssembly : 
        wszFusionName:string * 
        pbstrPath:string byref -> int 
function GetAssembly(
    wszFusionName : String, 
    pbstrPath : String
) : int

Parameters

  • wszFusionName
    Type: System.String
    [in] Specifies assembly name.
  • pbstrPath
    Type: System.String%
    [out] Pointer to a string containing the path for the assembly.

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:

HRESULT IVsTypeLibraryWrapperCallback::GetAssembly(
   [in] LPCOLESTR wszFusionName,
   [out,retval] BSTR* pbstrPath
);

.NET Framework Security

See Also

Reference

IVsTypeLibraryWrapperCallback Interface

Microsoft.VisualStudio.Shell.Interop Namespace