Share via


IVsDependencyProvider.OpenDependency(String, IVsDependency) Method

Definition

Provides access to a specified dependency.

public:
 int OpenDependency(System::String ^ szDependencyCanonicalName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsDependency ^ % ppIVsDependency);
public:
 int OpenDependency(Platform::String ^ szDependencyCanonicalName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsDependency ^ &  ppIVsDependency);
int OpenDependency(std::wstring const & szDependencyCanonicalName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsDependency const & & ppIVsDependency);
public int OpenDependency (string szDependencyCanonicalName, out Microsoft.VisualStudio.Shell.Interop.IVsDependency ppIVsDependency);
abstract member OpenDependency : string * IVsDependency -> int
Public Function OpenDependency (szDependencyCanonicalName As String, ByRef ppIVsDependency As IVsDependency) As Integer

Parameters

szDependencyCanonicalName
String

[in] Specifies the canonical name of the requested dependency.

ppIVsDependency
IVsDependency

[out] Pointer to the IVsDependency interface of the requested dependency.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsDependencyProvider::OpenDependency(  
   [in] LPCOLESTR szDependencyCanonicalName,  
   [out] IVsDependency **ppIVsDependency  
);  

Applies to