Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Services Namespace