This method creates a new assembly whose contents are the given assembly file.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'宣言
Public MustOverride Function CreateDynamicAssembly ( _
fileName As String _
) As Assembly
'使用
Dim instance As DynamicTypeService
Dim fileName As String
Dim returnValue As Assembly
returnValue = instance.CreateDynamicAssembly(fileName)
public abstract Assembly CreateDynamicAssembly(
string fileName
)
public:
virtual Assembly^ CreateDynamicAssembly(
String^ fileName
) abstract
public abstract function CreateDynamicAssembly(
fileName : String
) : Assembly
Parameters
fileName
Type: System.StringThe name of the assembly.
Return Value
Type: System.Reflection.Assembly
Remarks
This is used to load an assembly so that the underlying file is not locked
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.