Struct windows::Storage::Pickers::FileOpenPicker
pub struct FileOpenPicker(/* private fields */);
Implementations§
§impl FileOpenPicker
impl FileOpenPicker
pub fn new() -> Result<Self>
pub fn ViewMode(&self) -> Result<PickerViewMode>
pub fn SetViewMode(&self, value: PickerViewMode) -> Result<()>
pub fn SettingsIdentifier(&self) -> Result<HSTRING>
pub fn SetSettingsIdentifier(&self, value: &HSTRING) -> Result<()>
pub fn SuggestedStartLocation(&self) -> Result<PickerLocationId>
pub fn SetSuggestedStartLocation(&self, value: PickerLocationId) -> Result<()>
pub fn CommitButtonText(&self) -> Result<HSTRING>
pub fn SetCommitButtonText(&self, value: &HSTRING) -> Result<()>
pub fn FileTypeFilter(&self) -> Result<IVector<HSTRING>>
pub fn PickSingleFileAsync(&self) -> Result<IAsyncOperation<StorageFile>>
pub fn PickMultipleFilesAsync( &self ) -> Result<IAsyncOperation<IVectorView<StorageFile>>>
pub fn ContinuationData(&self) -> Result<ValueSet>
pub fn PickSingleFileAndContinue(&self) -> Result<()>
pub fn PickMultipleFilesAndContinue(&self) -> Result<()>
pub fn User(&self) -> Result<User>
pub fn ResumePickSingleFileAsync() -> Result<IAsyncOperation<StorageFile>>
pub fn CreateForUser<P0>(user: P0) -> Result<FileOpenPicker>where
P0: IntoParam<User>,
pub fn PickSingleFileAsync2( &self, pickeroperationid: &HSTRING ) -> Result<IAsyncOperation<StorageFile>>
Trait Implementations§
§impl Clone for FileOpenPicker
impl Clone for FileOpenPicker
§fn clone(&self) -> FileOpenPicker
fn clone(&self) -> FileOpenPicker
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for FileOpenPicker
impl Debug for FileOpenPicker
§impl From<&FileOpenPicker> for &IInspectable
impl From<&FileOpenPicker> for &IInspectable
§fn from(value: &FileOpenPicker) -> Self
fn from(value: &FileOpenPicker) -> Self
Converts to this type from the input type.
§impl From<&FileOpenPicker> for &IUnknown
impl From<&FileOpenPicker> for &IUnknown
§fn from(value: &FileOpenPicker) -> Self
fn from(value: &FileOpenPicker) -> Self
Converts to this type from the input type.
§impl From<FileOpenPicker> for IInspectable
impl From<FileOpenPicker> for IInspectable
§fn from(value: FileOpenPicker) -> Self
fn from(value: FileOpenPicker) -> Self
Converts to this type from the input type.
§impl From<FileOpenPicker> for IUnknown
impl From<FileOpenPicker> for IUnknown
§fn from(value: FileOpenPicker) -> Self
fn from(value: FileOpenPicker) -> Self
Converts to this type from the input type.
§impl Interface for FileOpenPicker
impl Interface for FileOpenPicker
§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 more§impl PartialEq for FileOpenPicker
impl PartialEq for FileOpenPicker
§fn eq(&self, other: &FileOpenPicker) -> bool
fn eq(&self, other: &FileOpenPicker) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FileOpenPicker
impl Send for FileOpenPicker
impl StructuralPartialEq for FileOpenPicker
impl Sync for FileOpenPicker
Auto Trait Implementations§
impl RefUnwindSafe for FileOpenPicker
impl Unpin for FileOpenPicker
impl UnwindSafe for FileOpenPicker
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