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



compositionContextName
Returns the CompositionContext with the specified name.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetByName( _
   ByVal compositionContextName As String _
) As CompositionContext
Visual Basic (Usage)Copy Code
Dim compositionContextName As String
Dim value As CompositionContext
 
value = CompositionContext.GetByName(compositionContextName)
C# 
public static CompositionContext GetByName( 
   string compositionContextName
)
C++/CLI 
public:
static CompositionContext^ GetByName( 
   String^ compositionContextName
) 

Parameters

compositionContextName

Exceptions

ExceptionDescription
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 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.