ViewService.GetModel Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns the model corresponding to the view, or nulla null reference (Nothing in Visual Basic) if there is no model that matches the view.
Namespace: System.Activities.Design.Services
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public MustOverride Function GetModel ( _
view As DependencyObject _
) As ModelItem
'Usage
Dim instance As ViewService
Dim view As DependencyObject
Dim returnValue As ModelItem
returnValue = instance.GetModel(view)
public abstract ModelItem GetModel(
DependencyObject view
)
public:
virtual ModelItem^ GetModel(
DependencyObject^ view
) abstract
public abstract function GetModel(
view : DependencyObject
) : ModelItem
abstract GetModel :
view:DependencyObject -> ModelItem
Parameters
- view
Type: System.Windows.DependencyObject
The view object you want to find the model for.
Return Value
Type: System.Activities.Design.Model.ModelItem
Returns the corresponding model as a ModelItem, or nulla null reference (Nothing in Visual Basic) if there is no model for the given view object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If 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.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4