Udostępnij za pośrednictwem


IVsDataSourceFactory.GetDataSource(Guid, UInt32, IVsUIDataSource) Method

Definition

Returns a data source.

public:
 int GetDataSource(Guid % guid, System::UInt32 dw, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIDataSource ^ % ppUIDataSource);
public int GetDataSource (ref Guid guid, uint dw, out Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource ppUIDataSource);
abstract member GetDataSource : Guid * uint32 * IVsUIDataSource -> int
Public Function GetDataSource (ByRef guid As Guid, dw As UInteger, ByRef ppUIDataSource As IVsUIDataSource) As Integer

Parameters

guid
Guid

[in] The GUID for the data source factory.

dw
UInt32

[in] Reserved

ppUIDataSource
IVsUIDataSource

[out] Pointer to a variable that gets set to a IVsUIDataSource interface representing the data source.

Returns

Returns S_OK if the data source is found, or E_FAIL if not.

Remarks

This method must be accessed on the main thread.

Applies to