Bagikan melalui


AssemblyReferences.GetTypes Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Returns all the types in the set of referenced assemblies that derive from or implement the specified base type.

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

Syntax

'Declaration
Public Function GetTypes ( _
    baseType As Type _
) As IEnumerable(Of Type)
public IEnumerable<Type> GetTypes(
    Type baseType
)
public:
IEnumerable<Type^>^ GetTypes(
    Type^ baseType
)
member GetTypes : 
        baseType:Type -> IEnumerable<Type> 
public function GetTypes(
    baseType : Type
) : IEnumerable<Type>

Parameters

  • baseType
    Type: System.Type
    The base type that all returned types should derive from. If baseType is an interface, all returned types will implement the interface.

Return Value

Type: System.Collections.Generic.IEnumerable<Type>
An enumeration of types. An empty enumeration is returned if there are no matching types.

Exceptions

Exception Condition
ArgumentNullException

baseType is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

AssemblyReferences Class

Microsoft.Windows.Design Namespace

Other Resources

WPF Designer Extensibility