FeatureConnectorInformation Class
Contains information describing a specified feature connector.
Namespace: Microsoft.Windows.Design.Features
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public MustInherit Class FeatureConnectorInformation
'Usage
Dim instance As FeatureConnectorInformation
public abstract class FeatureConnectorInformation
public ref class FeatureConnectorInformation abstract
public abstract class FeatureConnectorInformation
Remarks
The feature manager maintains one FeatureConnectorInformation object for each feature connector it is managing. You get the currently running and pending feature connectors from the RunningConnectors and PendingConnectors properties.
Examples
The following sample code shows how to use the FeatureConnectorInformation 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);
}
}
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.Features.FeatureConnectorInformation
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
FeatureConnectorInformation Members
Microsoft.Windows.Design.Features Namespace
FeatureConnector<TFeatureProviderType>
Other Resources
How to: Create a Custom Feature Connector