共用方式為


IVsUIElement.put_DataSource(IVsUISimpleDataSource) Method

Definition

Binds the specified data source to this element.

public:
 int put_DataSource(Microsoft::VisualStudio::Shell::Interop::IVsUISimpleDataSource ^ pDataSource);
public:
 int put_DataSource(Microsoft::VisualStudio::Shell::Interop::IVsUISimpleDataSource ^ pDataSource);
int put_DataSource(Microsoft::VisualStudio::Shell::Interop::IVsUISimpleDataSource const & pDataSource);
public int put_DataSource (Microsoft.VisualStudio.Shell.Interop.IVsUISimpleDataSource pDataSource);
abstract member put_DataSource : Microsoft.VisualStudio.Shell.Interop.IVsUISimpleDataSource -> int
Public Function put_DataSource (pDataSource As IVsUISimpleDataSource) As Integer

Parameters

pDataSource
IVsUISimpleDataSource

The data source.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to