共用方式為


IVsRegisterDataSourceFactories.GetDataSource Method

Definition

Returns an interface for the 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] Globally unique identifier for the data source.

dw
UInt32

[in] Reserved.

ppUIDataSource
IVsUIDataSource

[out] Pointer to where to put the interface pointer.

Returns

Returns S_OK when the data source is valid or E_FAIL if the GUID was not found.

Implements

Remarks

This method must be accessed on the main thread.

Applies to