Share via


PolicyDrivenFeatureConnector<TFeatureProviderType> Class

Creates feature providers based on item policies.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Features.FeatureConnector<TFeatureProviderType>
    Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector<TFeatureProviderType>

Namespace:  Microsoft.Windows.Design.Policies
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustInherit Class PolicyDrivenFeatureConnector(Of TFeatureProviderType As FeatureProvider) _
    Inherits FeatureConnector(Of TFeatureProviderType)
public abstract class PolicyDrivenFeatureConnector<TFeatureProviderType> : FeatureConnector<TFeatureProviderType>
where TFeatureProviderType : FeatureProvider
generic<typename TFeatureProviderType>
where TFeatureProviderType : FeatureProvider
public ref class PolicyDrivenFeatureConnector abstract : public FeatureConnector<TFeatureProviderType>
[<AbstractClass>]
type PolicyDrivenFeatureConnector<'TFeatureProviderType when 'TFeatureProviderType : FeatureProvider> =  
    class
        inherit FeatureConnector<'TFeatureProviderType>
    end
JScript does not support generic types or methods.

Type Parameters

  • TFeatureProviderType
    The type of feature provider.

The PolicyDrivenFeatureConnector<TFeatureProviderType> type exposes the following members.

Constructors

  Name Description
Protected method PolicyDrivenFeatureConnector<TFeatureProviderType> Initializes a new instance of the PolicyDrivenFeatureConnector<TFeatureProviderType> class.

Top

Properties

  Name Description
Protected property Context Gets the editing context for the feature connector. (Inherited from FeatureConnector<TFeatureProviderType>.)
Protected property FeatureProviders Gets an enumeration of all current feature providers.
Protected property Manager Gets the FeatureManager for the feature connector. (Inherited from FeatureConnector<TFeatureProviderType>.)

Top

Methods

  Name Description
Protected method CreateFeatureProviders(Type) Creates a new list of feature providers associated with the feature connector, based on the provided type. (Inherited from FeatureConnector<TFeatureProviderType>.)
Public method Dispose() Releases all resources used by the FeatureConnector<TFeatureProviderType>. (Inherited from FeatureConnector<TFeatureProviderType>.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the PolicyDrivenFeatureConnector<TFeatureProviderType> and optionally releases the managed resources. (Overrides FeatureConnector<TFeatureProviderType>.Dispose(Boolean).)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method FeatureProvidersAdded Called by the policy feature connector when a policy changes and feature providers are added to the set of active feature providers.
Protected method FeatureProvidersRemoved Called by the policy feature connector when a policy changes and feature providers are removed from the set of active feature providers.
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 FeatureConnector<TFeatureProviderType>.)
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 IsValidProvider Tests if a feature provider is valid for invocation.
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.)
Protected method UpdateFeatureProviders Refreshes the feature providers based on the ItemPolicy.

Top

Remarks

A PolicyDrivenFeatureConnector<TFeatureProviderType> is a feature connector that creates feature providers based on ItemPolicy instances. A PolicyDrivenFeatureConnector<TFeatureProviderType> caches and maintains a set of feature providers that match up with the current policies and notify you when those feature providers change.

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.Policies Namespace