UnityContainerExtensions.IsRegistered<T> Method (IUnityContainer, String)
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The latest Enterprise Library information can be found at the Enterprise Library site. |
Namespace: Microsoft.Practices.Unity
Assembly: Microsoft.Practices.Unity.Silverlight (in Microsoft.Practices.Unity.Silverlight.dll) Version: 2.1.505.0 (2.1.505.0)
Syntax
public static bool IsRegistered<T>(
this IUnityContainer container,
string nameToCheck
)
'Declaration
<ExtensionAttribute> _
Public Shared Function IsRegistered(Of T) ( _
container As IUnityContainer, _
nameToCheck As String _
) As Boolean
[ExtensionAttribute]
public:
generic<typename T>
static bool IsRegistered(
IUnityContainer^ container,
String^ nameToCheck
)
Parameters
- container
Type: Microsoft.Practices.Unity.IUnityContainer
- nameToCheck
Type: System.String
Type Parameters
- T
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IUnityContainer. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .