IdeaBlade DevForce 2010 Help Reference
GetCompositionContext Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core.Composition Namespace > BaseCompositionContextResolver Class : GetCompositionContext Method



compositionContextName
Called by DevForce to retrieve a CompositionContext having the specified name.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetCompositionContext( _
   ByVal compositionContextName As String _
) As CompositionContext
Visual Basic (Usage)Copy Code
Dim instance As BaseCompositionContextResolver
Dim compositionContextName As String
Dim value As CompositionContext
 
value = instance.GetCompositionContext(compositionContextName)
C# 
public virtual CompositionContext GetCompositionContext( 
   string compositionContextName
)
C++/CLI 
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 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

See Also

© 2013 All Rights Reserved.