DevForce Help Reference
GetCompositionContext Method (BaseCompositionContextResolver)


Called by DevForce to retrieve a CompositionContext having the specified name.
Syntax
'Declaration
 
Public Overridable Function GetCompositionContext( _
   ByVal compositionContextName As String _
) As CompositionContext
'Usage
 
Dim instance As BaseCompositionContextResolver
Dim compositionContextName As String
Dim value As CompositionContext
 
value = instance.GetCompositionContext(compositionContextName)
public virtual CompositionContext GetCompositionContext( 
   string compositionContextName
)

Parameters

compositionContextName
Remarks
If your code will not resolve the specified context name you can allow the base implementation to try. If the name cannot be resolved by any resolver then an exception will be thrown.

An InvalidOperationException will be thrown by DevForce if the name of the CompositionContext returned does not match the compositionContextName parameter. If null is returned and the CompositionContext hasn't been otherwise registered then an IdeaBladeException is thrown.

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

BaseCompositionContextResolver Class
BaseCompositionContextResolver Members

Send Feedback