FeatureManager.PendingConnectors - свойство
Обновлен: Ноябрь 2007
Возвращает перечисление всех функциональных соединителей, которые пока не были активированы, так как они ожидают появления элементов контекста или служб.
Пространство имен: Microsoft.Windows.Design.Features
Сборка: Microsoft.Windows.Design.Extensibility (в Microsoft.Windows.Design.Extensibility.dll)
Синтаксис
'Декларация
Public ReadOnly Property PendingConnectors As IEnumerable(Of FeatureConnectorInformation)
'Применение
Dim instance As FeatureManager
Dim value As IEnumerable(Of FeatureConnectorInformation)
value = instance.PendingConnectors
public IEnumerable<FeatureConnectorInformation> PendingConnectors { get; }
public:
property IEnumerable<FeatureConnectorInformation^>^ PendingConnectors {
IEnumerable<FeatureConnectorInformation^>^ get ();
}
public function get PendingConnectors () : IEnumerable<FeatureConnectorInformation>
Значение свойства
Тип: System.Collections.Generic.IEnumerable<FeatureConnectorInformation>
Перечисление функциональных соединителей, которые ожидают появления элементов контекста или служб в контексте редактирования.
Примеры
В следующем примере показано, как класс FeatureManager используется для обращения к работающим и ожидающим соединителям. Полный исходный код см. в разделе Практическое руководство. Создание пользовательского соединительного элемент.
' 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);
}
}
Разрешения
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Использование библиотек из не вполне надежного кода.
См. также
Ссылки
Microsoft.Windows.Design.Features - пространство имен
FeatureConnector<TFeatureProviderType>