pub struct _AppDomain(/* private fields */);Expand description
This struct represents the COM _AppDomain interface.
Implementations§
Source§impl _AppDomain
impl _AppDomain
Sourcepub fn load_bytes(&self, buffer: &[u8]) -> Result<_Assembly>
pub fn load_bytes(&self, buffer: &[u8]) -> Result<_Assembly>
Loads an assembly into the current application domain from a byte slice.
Sourcepub fn load_name(&self, name: &str) -> Result<_Assembly>
pub fn load_name(&self, name: &str) -> Result<_Assembly>
Loads an assembly by its name in the current application domain.
Sourcepub fn from_raw(raw: *mut c_void) -> Result<_AppDomain>
pub fn from_raw(raw: *mut c_void) -> Result<_AppDomain>
Creates an _AppDomain instance from a raw COM interface pointer.
Sourcepub fn get_assembly(&self, assembly_name: &str) -> Result<_Assembly>
pub fn get_assembly(&self, assembly_name: &str) -> Result<_Assembly>
Searches for an assembly by name within the current AppDomain.
Sourcepub fn assemblies(&self) -> Result<Vec<(String, _Assembly)>>
pub fn assemblies(&self) -> Result<Vec<(String, _Assembly)>>
Retrieves all assemblies currently loaded in the AppDomain.
Sourcepub fn Load_3(&self, rawAssembly: *mut SAFEARRAY) -> Result<_Assembly>
pub fn Load_3(&self, rawAssembly: *mut SAFEARRAY) -> Result<_Assembly>
Calls the Load_3 method from the vtable of the _AppDomain interface.
Sourcepub fn Load_2(&self, assemblyString: BSTR) -> Result<_Assembly>
pub fn Load_2(&self, assemblyString: BSTR) -> Result<_Assembly>
Calls the Load_2 method from the vtable of the _AppDomain interface.
Sourcepub fn GetHashCode(&self) -> Result<u32>
pub fn GetHashCode(&self) -> Result<u32>
Calls the GetHashCode method from the vtable of the _AppDomain interface.
Sourcepub fn GetType(&self) -> Result<_Type>
pub fn GetType(&self) -> Result<_Type>
Retrieves the primary type associated with the current app domain.
Sourcepub fn GetAssemblies(&self) -> Result<*mut SAFEARRAY>
pub fn GetAssemblies(&self) -> Result<*mut SAFEARRAY>
Retrieves the assemblies currently loaded into the current AppDomain.
Trait Implementations§
Source§impl Clone for _AppDomain
impl Clone for _AppDomain
Source§fn clone(&self) -> _AppDomain
fn clone(&self) -> _AppDomain
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for _AppDomain
impl Debug for _AppDomain
Source§impl Deref for _AppDomain
impl Deref for _AppDomain
Source§impl Interface for _AppDomain
impl Interface for _AppDomain
Source§const IID: GUID
const IID: GUID
The interface identifier (IID) for the _AppDomain COM interface.
This GUID is used to identify the _AppDomain interface when calling
COM methods like QueryInterface. It is defined based on the standard
.NET CLR IID for the _AppDomain interface.
Source§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Interface implementation.Source§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Source§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
QueryInterface. Read moreSource§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
&dyn Any]. Read moreSource§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
&dyn Any]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl, not the inner &MyApp object. Read moreSource§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
&dyn Any]. It returns a reference to the “outer”
object, e.g. MyApp_Impl, not the inner MyApp object. Read moreSource§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Weak reference to this object.Source§unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
QueryInterface on this interface Read moreSource§fn to_ref(&self) -> InterfaceRef<'_, Self>
fn to_ref(&self) -> InterfaceRef<'_, Self>
InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically,
and eliminates the need for dynamic reference count adjustments (AddRef/Release).