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 | |
---|---|---|
PolicyDrivenFeatureConnector<TFeatureProviderType> | Initializes a new instance of the PolicyDrivenFeatureConnector<TFeatureProviderType> class. |
Top
Properties
Name | Description | |
---|---|---|
Context | Gets the editing context for the feature connector. (Inherited from FeatureConnector<TFeatureProviderType>.) | |
FeatureProviders | Gets an enumeration of all current feature providers. | |
Manager | Gets the FeatureManager for the feature connector. (Inherited from FeatureConnector<TFeatureProviderType>.) |
Top
Methods
Name | Description | |
---|---|---|
CreateFeatureProviders(Type) | Creates a new list of feature providers associated with the feature connector, based on the provided type. (Inherited from FeatureConnector<TFeatureProviderType>.) | |
Dispose() | Releases all resources used by the FeatureConnector<TFeatureProviderType>. (Inherited from FeatureConnector<TFeatureProviderType>.) | |
Dispose(Boolean) | Releases the unmanaged resources used by the PolicyDrivenFeatureConnector<TFeatureProviderType> and optionally releases the managed resources. (Overrides FeatureConnector<TFeatureProviderType>.Dispose(Boolean).) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
FeatureProvidersAdded | Called by the policy feature connector when a policy changes and feature providers are added to the set of active feature providers. | |
FeatureProvidersRemoved | Called by the policy feature connector when a policy changes and feature providers are removed from the set of active feature providers. | |
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>.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsValidProvider | Tests if a feature provider is valid for invocation. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
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.