This documentation is archived and is not being maintained.

ICodeGenerator.Supports Method

Gets a value indicating whether the generator provides support for the language features represented by the specified GeneratorSupport object.

[Visual Basic]
Function Supports( _
   ByVal supports As GeneratorSupport _
) As Boolean
bool Supports(
   GeneratorSupport supports
bool Supports(
   GeneratorSupport supports
function Supports(
   supports : GeneratorSupport
) : Boolean;


The capabilities to test the generator for.

Return Value

true if the specified capabilities are supported; otherwise, false.


This method can be called with a number of GeneratorSupport flags at once to test for a set of capabilities by joining a set of appropriate capability flags together with a binary "Or" operator (|).


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ICodeGenerator Interface | ICodeGenerator Members | System.CodeDom.Compiler Namespace