IExtenderListService 介面
定義
組件:System.ComponentModel.TypeConverter.dll
組件:System.dll
組件:netstandard.dll
提供可列出擴充性提供者 (Extender Provider) 的介面。Provides an interface that can list extender providers.
本文內容
public interface class IExtenderListService
public interface IExtenderListService
type IExtenderListService = interface
Public Interface IExtenderListService
範例
下列範例示範如何使用來取得目前作用中的擴充 IExtenderListService 項提供者集合。The following example demonstrates using the IExtenderListService to obtain the set of currently active extender providers.
#using
#using
#using
using namespace System;
using namespace System::Drawing;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
using namespace System::Windows::Forms;
namespace ExtenderListServiceExample
{
// This control lists any active extender providers.
public ref class ExtenderListServiceControl: public UserControl
{
private:
IExtenderListService^ extenderListService;
array^extenderNames;
public:
ExtenderListServiceControl()
{
this->Width = 600;
}
property ISite^ Site
{
// Queries the IExtenderListService when the control is sited
// in design mode.
virtual ISite^ get() override
{
return __super::Site;
}
virtual void set( ISite^ value ) override
{
__super::Site = value;
if ( this->