ICodeGenerator::Supports Method (GeneratorSupport)
.NET Framework (current version)
Gets a value indicating whether the generator provides support for the language features represented by the specified GeneratorSupport object.
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::Booleantrue 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::LinkDemandSecurityAction::InheritanceDemand
for full trust for the immediate caller. This member cannot be used by partially trusted code.
for full trust for inheritors. This member cannot be inherited by partially trusted code.
.NET Framework
Available since 1.1
Available since 1.1
Show: