PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model.​Binding Namespace / Assembly­Binding­Policy Class

AssemblyBindingPolicy Class

Specifies a mapping between an assembly reference and the assembly to which the reference is actually resolve. Assembly redirection policies allow to substitute other assemblies to the ones that are actually requested, and therefore support newer versions of these assemblies, or even different variants of the .NET Framework.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Binding.AssemblyBindingPolicy

Namespace:  PostSharp.Sdk.CodeModel.Binding
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public sealed class AssemblyBindingPolicy : IAssemblyBindingPolicy

The AssemblyBindingPolicy type exposes the following members.

Constructors
  NameDescription
Public methodAssemblyBindingPolicy(IAssemblyName, IAssemblyName)
Initializes a new instance of the AssemblyBindingPolicy class
Public methodAssemblyBindingPolicy(IAssemblyName, Version)
Initializes a new instance of the AssemblyBindingPolicy class
Public methodAssemblyBindingPolicy(IAssemblyName, IAssemblyName, Boolean)
Initializes a new instance of the AssemblyBindingPolicy class
Public methodAssemblyBindingPolicy(BindingContext, String, Byte[], String, AssemblyProcessorArchitecture, Version, Version, String, Byte[], Version)
Initializes a new AssemblyBindingPolicy.
Properties
  NameDescription
Public propertyBindingContext
Public propertyOldName
Gets or sets the short name of the assembly reference.
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMatches
Determines whether the current policy applies to a given assembly name.
Public methodResolveAssembly
Applies the current policy to an assembly reference and returns the transformed assembly reference.
Public methodToString
Returns a string that represents the current object.
(Overrides Object.ToString().)
See Also