PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Domain Class

Domain Class

A domain is a scope, i.e. a context in which external references are resolved. A domain contains assemblies.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Element
    PostSharp.Sdk.CodeModel.Domain

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public sealed class Domain : Element, 
	IDisposable, ITaggable

The Domain type exposes the following members.

Constructors
  NameDescription
Public methodDomain
Initializes a new instance of the Domain class
Properties
  NameDescription
Public propertyAssemblies
Gets the collection of assemblies loaded in the domain.
Public propertyBindingContext
Public propertyDisableLazyLoading
Determines whether lazy loading of assemblies should be fully disabled.
Methods
  NameDescription
Public methodClearCache
Clear the cache (typically mapping to System.Reflection or, if the current element is a reference, to the related definition) of the current Element and all its children.
(Inherited from Element.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFindTypeDefinition(Type, BindingOptions)
Find the TypeDefDeclaration of a given Type in the current Domain and specifies binding options.
Public methodFindTypeDefinition(AssemblyQualifiedTypeName, BindingOptions)
Find the TypeDefDeclaration of a type given its name in the current Domain and specifies binding options.
Public methodGetAssembly(String, BindingOptions)
Gets an assembly given its name and specifies binding options.
Public methodGetAssembly(IAssemblyName, BindingOptions, LoadAssemblyOptions)
Gets an assembly from the current domain given its name or loads it into the domain if not yet present, and specifies binding options.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTag<T>
Gets a tag associated with the current declaration.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoadAssembly
Loads an assembly (given by file name) into the current domain and specifies whether the assembly should be lazily loaded or not.
Public methodSetTag<T>
Set a tag to the current declaration.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Events
  NameDescription
Public eventAssemblyLoading
Event raised when an assembly is requested to be loaded in the assembly. Event clients can specify whether the assembly should be loaded lazily or not.
See Also