Sdílet prostřednictvím


IVsRegisterDataSourceFactories.RegisterDataSourceFactory Method

Definition

Registers this data source factory with the global service.

public:
 int RegisterDataSourceFactory(Guid % guid, Microsoft::VisualStudio::Shell::Interop::IVsDataSourceFactory ^ pDataSourceFactory);
public int RegisterDataSourceFactory (ref Guid guid, Microsoft.VisualStudio.Shell.Interop.IVsDataSourceFactory pDataSourceFactory);
abstract member RegisterDataSourceFactory : Guid * Microsoft.VisualStudio.Shell.Interop.IVsDataSourceFactory -> int
Public Function RegisterDataSourceFactory (ByRef guid As Guid, pDataSourceFactory As IVsDataSourceFactory) As Integer

Parameters

guid
Guid

[in] Globally unique identifier for the data source factory.

pDataSourceFactory
IVsDataSourceFactory

[in] The interface to use for the data source factory.

Returns

Returns S_OK if the data source factory was registered correctly.

Remarks

This method is safe to access from any thread.

Applies to