Udostępnij za pośrednictwem


TypeRegistration.DefaultName<TServiceType> Method

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.

Returns the default name for a type that will be returned if no name is otherwise specified.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel
Assembly: Microsoft.Practices.EnterpriseLibrary.Common.Silverlight (in Microsoft.Practices.EnterpriseLibrary.Common.Silverlight.dll) Version: 5.0.505.0

Syntax

public static string DefaultName<TServiceType>()
'Declaration
Public Shared Function DefaultName(Of TServiceType) As String
public:
generic<typename TServiceType>
static String^ DefaultName()

Type Parameters

  • TServiceType
    Type that was registered.

Return Value

Default name that will be used.

See Also

TypeRegistration Class

DefaultName Overload

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel Namespace