FeatureManager.RunningConnectors Property
Gets an enumeration of all connectors that are currently running.
Namespace: Microsoft.Windows.Design.Features
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public ReadOnly Property RunningConnectors As IEnumerable(Of FeatureConnectorInformation)
'Usage
Dim instance As FeatureManager
Dim value As IEnumerable(Of FeatureConnectorInformation)
value = instance.RunningConnectors
public IEnumerable<FeatureConnectorInformation> RunningConnectors { get; }
public:
property IEnumerable<FeatureConnectorInformation^>^ RunningConnectors {
IEnumerable<FeatureConnectorInformation^>^ get ();
}
public function get RunningConnectors () : IEnumerable<FeatureConnectorInformation>
Property Value
Type: System.Collections.Generic.IEnumerable<FeatureConnectorInformation>
An enumeration of feature connectors that are currently running.
Examples
The following sample code shows how to use the FeatureManager class to access the running and pending connectors. For a complete code listing, see How to: Create a Custom Feature Connector.
' 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);
}
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Features Namespace
FeatureConnector<TFeatureProviderType>