Visual Basic (Declaration) | |
---|---|
Public Shared Function TryGetInstanceFactory(Of T As Class)() As ICompositionFactory(Of T) |
Visual Basic (Usage) | ![]() |
---|---|
Dim value As ICompositionFactory(Of T) value = Composition.TryGetInstanceFactory(Of T)() |
C# | |
---|---|
public static ICompositionFactory<T> TryGetInstanceFactory<T>() where T: class |
C++/CLI | |
---|---|
public: static ICompositionFactory<T^>^ TryGetInstanceFactorygeneric<typename T> (); where T: ref class |
Type Parameters
- T
- Type of instance the factory creates.
Return Value
Null if the container cannot provide a factory for the specified type.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family