ViewService.GetModel Method
When overridden in a derived class, gets the model corresponding to the specified view.
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function GetModel ( _
view As ViewItem _
) As ModelItem
public abstract ModelItem GetModel(
ViewItem view
)
public:
virtual ModelItem^ GetModel(
ViewItem^ view
) abstract
abstract GetModel :
view:ViewItem -> ModelItem
public abstract function GetModel(
view : ViewItem
) : ModelItem
Parameters
- view
Type: Microsoft.Windows.Design.Interaction.ViewItem
The view to get the model for.
Return Value
Type: Microsoft.Windows.Design.Model.ModelItem
The model corresponding to the specified view, or nulla null reference (Nothing in Visual Basic) if no model is found.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | view is nulla null reference (Nothing in Visual Basic). |
.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