Application.GetResourceStream(Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a resource stream for a resource data file that is located at the specified Uri (see WPF Application Resource, Content, and Data Files).
public:
static System::Windows::Resources::StreamResourceInfo ^ GetResourceStream(Uri ^ uriResource);
[System.Security.SecurityCritical]
public static System.Windows.Resources.StreamResourceInfo GetResourceStream (Uri uriResource);
public static System.Windows.Resources.StreamResourceInfo GetResourceStream (Uri uriResource);
[<System.Security.SecurityCritical>]
static member GetResourceStream : Uri -> System.Windows.Resources.StreamResourceInfo
static member GetResourceStream : Uri -> System.Windows.Resources.StreamResourceInfo
Public Shared Function GetResourceStream (uriResource As Uri) As StreamResourceInfo
Parameters
Returns
A StreamResourceInfo that contains a resource stream for resource data file that is located at the specified Uri.
- Attributes
Exceptions
The Uri that is passed to GetResourceStream(Uri) is null.
The Uri that is passed to GetResourceStream(Uri) is either not relative, or is absolute but not in the pack://application:,,,/
form.
The Uri that is passed to GetResourceStream(Uri) cannot be found.
Remarks
This method is not thread safe.
Applies to
See also
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour