ExternalResourceService Class
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Provides access to resources external to the markup file.
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.Services.ExternalResourceService
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustInherit Class ExternalResourceService
public abstract class ExternalResourceService
public ref class ExternalResourceService abstract
[<AbstractClass>]
type ExternalResourceService = class end
public abstract class ExternalResourceService
The ExternalResourceService type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ExternalResourceService | Initializes a new instance of the ExternalResourceService class. |
Top
Properties
Name | Description | |
---|---|---|
ApplicationModel | When overridden in a derived class, gets the application model. | |
ResourceUris | When overridden in a derived class, gets an enumeration of URI values that can be loaded as resources. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetBinaryResource | When overridden in a derived class, gets the specified URI in the project system and returns its contents as a binary blob. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetModelResource | When overridden in a derived class, gets the specified URI in the project system, loads it, and returns a ModelItem representing the root. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TranslateStreamUri | When overridden in a derived class, translates a local URI back to its original URI. |
Top
Remarks
You may use this class to access binary resources, such as images, or model resources, such as resource dictionaries. Model resources are not editable.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Windows.Design.Services Namespace