Struct windows::ApplicationModel::AppInfo
pub struct AppInfo(/* private fields */);
Implementations§
§impl AppInfo
impl AppInfo
pub fn Id(&self) -> Result<HSTRING>
pub fn AppUserModelId(&self) -> Result<HSTRING>
pub fn DisplayInfo(&self) -> Result<AppDisplayInfo>
pub fn PackageFamilyName(&self) -> Result<HSTRING>
pub fn Package(&self) -> Result<Package>
pub fn ExecutionContext(&self) -> Result<AppExecutionContext>
pub fn SupportedFileExtensions(&self) -> Result<Array<HSTRING>>
pub fn Current() -> Result<AppInfo>
pub fn GetFromAppUserModelId(appusermodelid: &HSTRING) -> Result<AppInfo>
pub fn GetFromAppUserModelIdForUser<P0>(
user: P0,
appusermodelid: &HSTRING
) -> Result<AppInfo>where
P0: IntoParam<User>,
Trait Implementations§
§impl From<&AppInfo> for &IInspectable
impl From<&AppInfo> for &IInspectable
§impl From<AppInfo> for IInspectable
impl From<AppInfo> for IInspectable
§impl Interface for AppInfo
impl Interface for AppInfo
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreimpl Eq for AppInfo
impl Send for AppInfo
impl StructuralPartialEq for AppInfo
impl Sync for AppInfo
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more