共用方式為


IVsDependencyProvider.OpenDependency Method

Provides access to a specified dependency.

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

Syntax

'宣告
Function OpenDependency ( _
    szDependencyCanonicalName As String, _
    <OutAttribute> ByRef ppIVsDependency As IVsDependency _
) As Integer
'用途
Dim instance As IVsDependencyProvider
Dim szDependencyCanonicalName As String
Dim ppIVsDependency As IVsDependency
Dim returnValue As Integer

returnValue = instance.OpenDependency(szDependencyCanonicalName, _
    ppIVsDependency)
int OpenDependency(
    string szDependencyCanonicalName,
    out IVsDependency ppIVsDependency
)
int OpenDependency(
    [InAttribute] String^ szDependencyCanonicalName, 
    [OutAttribute] IVsDependency^% ppIVsDependency
)
abstract OpenDependency : 
        szDependencyCanonicalName:string * 
        ppIVsDependency:IVsDependency byref -> int 
function OpenDependency(
    szDependencyCanonicalName : String, 
    ppIVsDependency : IVsDependency
) : int

Parameters

  • szDependencyCanonicalName
    Type: System.String
    [in] Specifies the canonical name of the requested dependency.

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 vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsDependencyProvider Interface

IVsDependencyProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace