ICodeGenerator.Supports Method (GeneratorSupport)

 

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

Namespace:   System.CodeDom.Compiler
Assembly:  System (in System.dll)

[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
bool Supports(
	GeneratorSupport supports
)

Parameters

supports
Type: System.CodeDom.Compiler.GeneratorSupport

The capabilities to test the generator for.

Return Value

Type: System.Boolean

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 (|).

SecurityAction.LinkDemand

for full trust for the immediate caller. This member cannot be used by partially trusted code.

SecurityAction.InheritanceDemand

for full trust for inheritors. This member cannot be inherited by partially trusted code.

.NET Framework
Available since 1.1
Return to top
Show: