DevForce Help Reference
GetByName Method


Returns the CompositionContext with the specified name.
Syntax
'Declaration
 
Public Shared Function GetByName( _
   ByVal compositionContextName As String _
) As CompositionContext
'Usage
 
Dim compositionContextName As String
Dim value As CompositionContext
 
value = CompositionContext.GetByName(compositionContextName)
public static CompositionContext GetByName( 
   string compositionContextName
)

Parameters

compositionContextName
Exceptions
ExceptionDescription
IdeaBlade.Core.IdeaBladeExceptionThrown if a CompositionContext with the specified name is not found
Remarks
You can implement a custom ICompositionContextResolver if you are not using either the fake or default contexts. If you have implemented multiple resolvers the first to resolve the name "wins".

If the compositionContextName passed to this method is null or an empty string, the standard Default composition context is returned.

An exception is thrown if the name cannot be resolved.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CompositionContext Class
CompositionContext Members

Send Feedback