ModelItemExtensions.TryGetPropertyValue Method (ModelItem, ModelItem%, array<String[])
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Attempts to retrieve the value of the specified item at the specified path.
Namespace: System.Activities.Design.ModelTree
Assembly: System.Activities.Design (in System.Activities.Design.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function TryGetPropertyValue ( _
item As ModelItem, _
<OutAttribute> ByRef value As ModelItem, _
ParamArray path As String() _
) As Boolean
'Usage
Dim item As ModelItem
Dim value As ModelItem
Dim path As String()
Dim returnValue As Boolean
returnValue = item.TryGetPropertyValue(value, _
path)
public static bool TryGetPropertyValue(
this ModelItem item,
out ModelItem value,
params string[] path
)
[ExtensionAttribute]
public:
static bool TryGetPropertyValue(
ModelItem^ item,
[OutAttribute] ModelItem^% value,
... array<String^>^ path
)
public static function TryGetPropertyValue(
item : ModelItem,
value : ModelItem,
... path : String[]
) : boolean
static member TryGetPropertyValue :
item:ModelItem *
value:ModelItem *
path:string[] -> bool
Parameters
- item
Type: System.Activities.Design.Model.ModelItem
The item.
- value
Type: System.Activities.Design.Model.ModelItem%
When this method returns, contains the value in a model item.
- path
Type: array<System.String[]
The path to the item.
Return Value
Type: System.Boolean
true if the attempt was successful; otherwise, false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ModelItem. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.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