AssemblyBuilder::CodeBase Property

 

Gets the location of the assembly, as specified originally (such as in an AssemblyName object).

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public:
property String^ CodeBase {
	virtual String^ get() override;
}

Property Value

Type: System::String^

The location of the assembly, as specified originally.

Exception Condition
NotSupportedException

This method is not currently supported.

SecurityException

The caller does not have the required permission.

To get the absolute path to the loaded manifest-containing file, use the Assembly::Location property.

ReflectionPermission

when invoked late-bound through mechanisms such as Type::InvokeMember. Associated enumeration: ReflectionPermissionFlag::MemberAccess.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show: