Share via


AttributeTable.AttributedTypes Property

Gets an enumeration of all types which have attribute overrides of some kind, for example, on a property or on the type itself.

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

Syntax

'Declaration
Public ReadOnly Property AttributedTypes As IEnumerable(Of Type)
    Get
public IEnumerable<Type> AttributedTypes { get; }
public:
property IEnumerable<Type^>^ AttributedTypes {
    IEnumerable<Type^>^ get ();
}
member AttributedTypes : IEnumerable<Type>
function get AttributedTypes () : IEnumerable<Type>

Property Value

Type: System.Collections.Generic.IEnumerable<Type>
An enumeration of types which have attribute overrides.

Remarks

Use AttributedTypes to determine what types will be refreshed when this attribute table is added to the design-time metadata.

Examples

The following code example shows how to get the types which have custom attributes. This code example is part of a larger example provided for the AttributeTable class.

Dim types As IEnumerable(Of Type) = attributes.AttributedTypes
IEnumerable<Type> types = attributes.AttributedTypes;

.NET Framework Security

See Also

Reference

AttributeTable Class

Microsoft.Windows.Design.Metadata Namespace

AttributeTableBuilder