public abstract class CodeDomProvider : Component
|
Container (inherited from System.ComponentModel.Component) |
Read-only See base class member description: System.ComponentModel.Component.Container Gets the IContainer that contains the Component. |
FileExtension | Read-only Gets or sets the default file name extension to use for source code files in the current language. |
LanguageOptions | Read-only Gets or sets a language features identifier. |
Site (inherited from System.ComponentModel.Component) |
Read-write See base class member description: System.ComponentModel.Component.Site Gets or sets the ISite of the Component. |
CreateCompiler | Creates a new code compiler. |
CreateGenerator | Overloaded:CreateGenerator() Creates a new code generator. |
CreateGenerator | Overloaded:CreateGenerator(string fileName) Creates a new code generator using the specified file name for output. |
CreateGenerator | Overloaded:CreateGenerator(TextWriter output) Creates a new code generator using the specified TextWriter for output. |
CreateObjRef (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
CreateParser | Creates a new code parser. |
Dispose (inherited from System.ComponentModel.Component) |
Overloaded:Dispose() See base class member description: System.ComponentModel.Component.DisposeReleases all resources used by the Component. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetLifetimeService (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
InitializeLifetimeService (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
Disposed (inherited from System.ComponentModel.Component) |
See base class member description: System.ComponentModel.Component.Disposed Adds an event handler to listen to the Component.Disposed event on the component. |
ctor #1 | Default constructor. This constructor is called by derived class constructors to initialize state in this type. |
DesignMode (inherited from System.ComponentModel.Component) |
Read-only See base class member description: System.ComponentModel.Component.DesignMode Gets a value that indicates whether the Component is currently in design mode. |
Events (inherited from System.ComponentModel.Component) |
Read-only See base class member description: System.ComponentModel.Component.Events Gets the list of event handlers that are attached to this Component. |
Dispose (inherited from System.ComponentModel.Component) |
Overloaded:Dispose(bool disposing) See base class member description: System.ComponentModel.Component.DisposeReleases the unmanaged resources used by the Component and optionally releases the managed resources. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
GetService (inherited from System.ComponentModel.Component) |
See base class member description: System.ComponentModel.Component.GetService Returns an object that represents a service provided by the Component or by its Container. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
protected CodeDomProvider(); |
public IContainer Container {get;}
|
protected bool DesignMode {get;}
|
protected EventHandlerList Events {get;}
|
public virtual string FileExtension {get;}
|
public virtual LanguageOptions LanguageOptions {get;}
|
public virtual ISite Site {get; set;}
|
The property value is null if the Component is removed from its IContainer. Assigning null to this property does not necessarily remove the Component from the IContainer.
A Component might or might not have a name. If a Component is given a name, the name must be unique among other Component objects within its IContainer. The ISite stores the name of the Component; therefore, you can only name a Component if it has an ISite associated with it.
public abstract ICodeCompiler CreateCompiler(); |
public abstract ICodeGenerator CreateGenerator(); |
public virtual ICodeGenerator CreateGenerator( |
fileName
public virtual ICodeGenerator CreateGenerator( |
output
requestedType
Exception Type | Condition |
---|---|
RemotingException | This instance is not a valid remoting object. |
public virtual ICodeParser CreateParser(); |
public void Dispose(); |
protected virtual void Dispose( |
disposing
When the disposing parameter is true, this method releases all resources held by any managed objects that this Component references. This method invokes the Dispose() method of each referenced object.
For more information about Dispose and Object.Finalize, see the conceptual topic at MSDN: cleaningupunmanagedresources and the conceptual topic at MSDN: overridingfinalizemethod.
~CodeDomProvider(); |
public virtual int GetHashCode(); |
public object GetLifetimeService(); |
service
This value is null if the Component does not provide the specified service.
public Type GetType(); |
public virtual object InitializeLifetimeService(); |
public class MyClass : MarshalByRefObject { public override Object InitializeLifetimeService() { ILease lease = (ILease)base.InitializeLifetimeService(); if (lease.CurrentState == LeaseState.Initial) { lease.InitialLeaseTime = TimeSpan.FromMinutes(1); lease.SponsorshipTimeout = TimeSpan.FromMinutes(2); lease.RenewOnCallTime = TimeSpan.FromSeconds(2); } return lease; } }
protected object MemberwiseClone(); |
public virtual string ToString(); |
public event EventHandler Disposed;
|