Visual Basic (Declaration) | |
---|---|
Public Shared Function GetByName( _ ByVal compositionContextName As String _ ) As CompositionContext |
Visual Basic (Usage) | ![]() |
---|---|
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
Exception | Description |
---|---|
IdeaBladeException | Thrown if a CompositionContext with the specified name is not found |
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.
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