Share via


ExternalResourceService.GetModelResource Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

When overridden in a derived class, gets the specified URI in the project system, loads it, and returns a ModelItem representing the root.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function GetModelResource ( _
    uri As Uri _
) As ModelResource
public abstract ModelResource GetModelResource(
    Uri uri
)
public:
virtual ModelResource^ GetModelResource(
    Uri^ uri
) abstract
abstract GetModelResource : 
        uri:Uri -> ModelResource 
public abstract function GetModelResource(
    uri : Uri
) : ModelResource

Parameters

  • uri
    Type: System.Uri
    The URI to get the resource for.

Return Value

Type: Microsoft.Windows.Design.Services.ModelResource
The model resource specified by uri.

Exceptions

Exception Condition
ArgumentNullException

uri is nulla null reference (Nothing in Visual Basic).

Remarks

Multiple calls for the same URI will yield the same ModelItem. The method returns nulla null reference (Nothing in Visual Basic) if the URI could not be loaded into a model.

.NET Framework Security

See Also

Reference

ExternalResourceService Class

Microsoft.Windows.Design.Services Namespace

Other Resources

WPF Designer Extensibility