PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Assembly­Name­Extensions Class / Assembly­Name­Extensions Methods / Assembly­Name­Extensions.​Set­Binding­Context Method / Assembly­Name­Extensions.​Set­Binding­Context Method (IAssembly­Name, Binding­Context)

AssemblyNameExtensions.SetBindingContext Method (IAssemblyName, BindingContext)

[Missing <summary> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.SetBindingContext(PostSharp.Reflection.IAssemblyName,PostSharp.Extensibility.BindingContext)"]

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public static IAssemblyName SetBindingContext(
	this IAssemblyName assemblyName,
	BindingContext bindingContext
)

Parameters

assemblyName
Type: IAssemblyName

[Missing <param name="assemblyName"/> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.SetBindingContext(PostSharp.Reflection.IAssemblyName,PostSharp.Extensibility.BindingContext)"]

bindingContext
Type: BindingContext

[Missing <param name="bindingContext"/> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.SetBindingContext(PostSharp.Reflection.IAssemblyName,PostSharp.Extensibility.BindingContext)"]

Return Value

Type: IAssemblyName

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.SetBindingContext(PostSharp.Reflection.IAssemblyName,PostSharp.Extensibility.BindingContext)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAssemblyName. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also