windows::System::UserProfile

Struct UserInformation

pub struct UserInformation;

Implementations§

§

impl UserInformation

pub fn AccountPictureChangeEnabled() -> Result<bool>

pub fn NameAccessAllowed() -> Result<bool>

pub fn GetAccountPicture(kind: AccountPictureKind) -> Result<IStorageFile>

pub fn SetAccountPictureAsync<P0>( image: P0, ) -> Result<IAsyncOperation<SetAccountPictureResult>>
where P0: Param<IStorageFile>,

pub fn SetAccountPicturesAsync<P0, P1, P2>( smallimage: P0, largeimage: P1, video: P2, ) -> Result<IAsyncOperation<SetAccountPictureResult>>
where P0: Param<IStorageFile>, P1: Param<IStorageFile>, P2: Param<IStorageFile>,

pub fn SetAccountPictureFromStreamAsync<P0>( image: P0, ) -> Result<IAsyncOperation<SetAccountPictureResult>>
where P0: Param<IRandomAccessStream>,

pub fn SetAccountPicturesFromStreamsAsync<P0, P1, P2>( smallimage: P0, largeimage: P1, video: P2, ) -> Result<IAsyncOperation<SetAccountPictureResult>>
where P0: Param<IRandomAccessStream>, P1: Param<IRandomAccessStream>, P2: Param<IRandomAccessStream>,

pub fn AccountPictureChanged<P0>(changehandler: P0) -> Result<i64>
where P0: Param<EventHandler<IInspectable>>,

pub fn RemoveAccountPictureChanged(token: i64) -> Result<()>

pub fn GetDisplayNameAsync() -> Result<IAsyncOperation<HSTRING>>

pub fn GetFirstNameAsync() -> Result<IAsyncOperation<HSTRING>>

pub fn GetLastNameAsync() -> Result<IAsyncOperation<HSTRING>>

pub fn GetPrincipalNameAsync() -> Result<IAsyncOperation<HSTRING>>

pub fn GetSessionInitiationProtocolUriAsync() -> Result<IAsyncOperation<Uri>>

pub fn GetDomainNameAsync() -> Result<IAsyncOperation<HSTRING>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.