FeatureConnectorInformation Class

Contains information describing a specified feature connector.

Inheritance Hierarchy

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

Namespace:  Microsoft.Windows.Design.Features
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public MustInherit Class FeatureConnectorInformation
public abstract class FeatureConnectorInformation
public ref class FeatureConnectorInformation abstract
[<AbstractClass>]
type FeatureConnectorInformation =  class end
public abstract class FeatureConnectorInformation

The FeatureConnectorInformation type exposes the following members.

Constructors

  Name Description
Protected method FeatureConnectorInformation Initializes a new instance of the FeatureConnectorInformation class.

Top

Properties

  Name Description
Public property FeatureConnectorType Gets the type of feature connector this FeatureConnectorInformation describes.
Public property PendingItems Gets a list of context items that are required by the feature connector, but are not yet available in the editing context.
Public property PendingServices Gets a list of services that are required by the feature connector, but are not yet available in the editing context.
Public property RequiredItems Gets a list of context items the feature connector requires.
Public property RequiredServices Gets a list of services the feature connector requires.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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);
    }
}

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

Microsoft.Windows.Design.Features Namespace

FeatureManager

FeatureProvider

FeatureConnector<TFeatureProviderType>

Other Resources

How to: Create a Custom Feature Connector

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility