Application.GetContentStream(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 content data file that is located at the specified Uri (see WPF Application Resource, Content, and Data Files).
public:
static System::Windows::Resources::StreamResourceInfo ^ GetContentStream(Uri ^ uriContent);
[System.Security.SecurityCritical]
public static System.Windows.Resources.StreamResourceInfo GetContentStream (Uri uriContent);
public static System.Windows.Resources.StreamResourceInfo GetContentStream (Uri uriContent);
[<System.Security.SecurityCritical>]
static member GetContentStream : Uri -> System.Windows.Resources.StreamResourceInfo
static member GetContentStream : Uri -> System.Windows.Resources.StreamResourceInfo
Public Shared Function GetContentStream (uriContent As Uri) As StreamResourceInfo
Parameters
Returns
A StreamResourceInfo that contains a content data file that is located at the specified Uri. If a loose resource is not found, null is returned.
- Attributes
Exceptions
The Uri that is passed to GetContentStream(Uri) is null.
The Uri that is passed to GetContentStream(Uri) is an absolute Uri.
Remarks
This method is not thread safe.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για