Поделиться через


FeatureConnectorInformation - класс

Обновлен: Ноябрь 2007

Содержит описание указанного функционального соединителя.

Пространство имен:  Microsoft.Windows.Design.Features
Сборка:  Microsoft.Windows.Design.Extensibility (в Microsoft.Windows.Design.Extensibility.dll)

Синтаксис

'Декларация
Public MustInherit Class FeatureConnectorInformation
'Применение
Dim instance As FeatureConnectorInformation
public abstract class FeatureConnectorInformation
public ref class FeatureConnectorInformation abstract
public abstract class FeatureConnectorInformation

Заметки

Диспетчер функций поддерживает по одному объекту FeatureConnectorInformation для каждого функционального соединителя в своем ведении. Наборы используемых и ожидающих функциональных соединителей можно получить через свойства RunningConnectors и PendingConnectors.

Примеры

В следующем примере показано, как использовать класс FeatureConnectorInformation для обращения к работающим и ожидающим соединителям. Полный исходный код см. в разделе Практическое руководство. Создание пользовательского соединительного элемент.

' Binds the activatedFeatures and pendingFeatures controls
' the FeatureManager's RunningConnectors and PendingConnectors\
' properties.
Private Sub Bind()
    activatedFeatures.Items.Clear()
    pendingFeatures.Items.Clear()

    Dim info As FeatureConnectorInformation
    For Each info In featManager.RunningConnectors
        activatedFeatures.Items.Add(info)
    Next info

    For Each info In featManager.PendingConnectors
        pendingFeatures.Items.Add(info)
    Next info

End Sub
// Binds the activatedFeatures and pendingFeatures controls
// the FeatureManager's RunningConnectors and PendingConnectors\
// properties.
private void Bind() 
{
    activatedFeatures.Items.Clear();
    pendingFeatures.Items.Clear();

    foreach (FeatureConnectorInformation info in 
        featManager.RunningConnectors) 
    {
        activatedFeatures.Items.Add(info);
    }

    foreach (FeatureConnectorInformation info in 
        featManager.PendingConnectors) 
    {
        pendingFeatures.Items.Add(info);
    }
}

Иерархия наследования

System.Object
  Microsoft.Windows.Design.Features.FeatureConnectorInformation

Потокобезопасность

Любые открытые члены этого типа, объявленные как static (Shared в Visual Basic), являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.

См. также

Ссылки

FeatureConnectorInformation - члены

Microsoft.Windows.Design.Features - пространство имен

FeatureManager

FeatureProvider

FeatureConnector<TFeatureProviderType>

Другие ресурсы

Практическое руководство. Создание пользовательского соединительного элемент

Поставщики функций и соединительные элементы

Общее представление о расширяемости конструктора WPF