Compartir a través de


IVsDataSourceFactory.GetDataSource Method

Returns a data source.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
  Microsoft.VisualStudio.Shell.StartPage (in Microsoft.VisualStudio.Shell.StartPage.dll)

Syntax

'Declaración
Function GetDataSource ( _
    ByRef guid As Guid, _
    dw As UInteger, _
    <OutAttribute> ByRef ppUIDataSource As IVsUIDataSource _
) As Integer
'Uso
Dim instance As IVsDataSourceFactory
Dim guid As Guid
Dim dw As UInteger
Dim ppUIDataSource As IVsUIDataSource
Dim returnValue As Integer

returnValue = instance.GetDataSource(guid, _
    dw, ppUIDataSource)
int GetDataSource(
    ref Guid guid,
    uint dw,
    out IVsUIDataSource ppUIDataSource
)
int GetDataSource(
    [InAttribute] Guid% guid, 
    [InAttribute] unsigned int dw, 
    [OutAttribute] IVsUIDataSource^% ppUIDataSource
)
abstract GetDataSource : 
        guid:Guid byref * 
        dw:uint32 * 
        ppUIDataSource:IVsUIDataSource byref -> int 
function GetDataSource(
    guid : Guid, 
    dw : uint, 
    ppUIDataSource : IVsUIDataSource
) : int

Parameters

  • guid
    Type: System.Guid%
    [in] The GUID for the data source factory.

Return Value

Type: System.Int32
Returns S_OK if the data source is found, or E_FAIL if not.

.NET Framework Security

See Also

Reference

IVsDataSourceFactory Interface

Microsoft.VisualStudio.Shell.Interop Namespace